all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: swedebugia <swedebugia@riseup.net>
To: Alex Vong <alexvong1995@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Nano: disable hard wrapping by default
Date: Tue, 6 Nov 2018 22:57:39 +0100	[thread overview]
Message-ID: <fdb031d0-2cf5-852a-8ec2-f417ede94e2a@riseup.net> (raw)
In-Reply-To: <87pnviypjz.fsf@gmail.com>

Hi

On 2018-11-06 20:27, Alex Vong wrote:
> swedebugia <swedebugia@riseup.net> 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:
>>>
>>> sdb@komputilo ~$ 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	other threads:[~2018-11-06 21:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-06 18:43 Nano: disable hard wrapping by default swedebugia
2018-11-06 18:49 ` swedebugia
2018-11-06 19:27   ` Alex Vong
2018-11-06 21:57     ` swedebugia [this message]
2018-11-07  5:38       ` Alex Vong
2018-11-07  9:19         ` Thorsten Wilms
2018-11-11  8:02           ` swedebugia
2018-11-11 10:16             ` Thorsten Wilms
2018-11-07 18:20 ` Leo Famulari
2018-11-11  8:04   ` swedebugia
2018-11-15 13:14     ` swedebugia
2018-11-15 20:28       ` Alex Vong
2019-03-25 19:08 ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fdb031d0-2cf5-852a-8ec2-f417ede94e2a@riseup.net \
    --to=swedebugia@riseup.net \
    --cc=alexvong1995@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.