guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nano: disable hard wrapping by default


From: swedebugia
Subject: Re: Nano: disable hard wrapping by default
Date: Tue, 6 Nov 2018 22:57:39 +0100

Hi

On 2018-11-06 20:27, Alex Vong wrote:
swedebugia <address@hidden> writes:

On 2018-11-06 19:43, swedebugia wrote:
Hi

I stumpled on this hard-wrapping default behavior when editing
.bash_profile on GuixSD

It is super annoying.

Could we disable it by default?

According to the FAQ this exist:

"With --disable-wrapping-as-root you can disable any hard-wrapping
by default when the user is root, useful to prevent accidentally
changing long lines in system configuration files."

"  --disable-wrapping      Disable all hard-wrapping of text"

We only compile with this:

address@hidden ~$ nano -V

  GNU nano, version 2.9.8

snip

  Compiled options: --enable-utf8

We could do this also by adding the following to our core ~.bashrc

alias nano="nano --nowrap"
I don't use nano. But I think usually we want to stick with the default
provided by upstream. Also, do you know how other distros handle this?
Debian does disable wrapping by default. I think we can change it if
many distros agree that the more sensible default is to disable
wrapping.

Personally though, I prefer wrapping because I can read all the text at
once. I like to see the "whole picture" at once :)

That is what soft wrapping is for (soft wrap = on screen only, hard wrap = break lines with \n to fit on screen whatever the cost).

Soft wrapping is supported with: --softwrap

Arch/Antergos has this:

$ nano -V
 GNU nano, version 3.1
 Kompileringsflaggor: --disable-wrapping-as-root --enable-utf8

Gentoo warns in their wiki but compile as we do now with utf8. https://packages.gentoo.org/packages/app-editors/nano

Nixpkgs uses no arguments https://github.com/NixOS/nixpkgs/blob/1c2d575205f7aa3fc37d64d0606e3fd33de08d74/pkgs/applications/editors/nano/default.nix

Dunno with other distributions.

--
Cheers
Swedebugia




reply via email to

[Prev in Thread] Current Thread [Next in Thread]