From mboxrd@z Thu Jan 1 00:00:00 1970 From: swedebugia Subject: Re: Nano: disable hard wrapping by default Date: Tue, 6 Nov 2018 22:57:39 +0100 Message-ID: References: <87pnviypjz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK9M8-0000c6-Kw for guix-devel@gnu.org; Tue, 06 Nov 2018 16:57:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gK9M2-0003tL-Nt for guix-devel@gnu.org; Tue, 06 Nov 2018 16:57:52 -0500 Received: from mx1.riseup.net ([198.252.153.129]:48328) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gK9M1-0003iz-MD for guix-devel@gnu.org; Tue, 06 Nov 2018 16:57:46 -0500 In-Reply-To: <87pnviypjz.fsf@gmail.com> Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Alex Vong Cc: guix-devel@gnu.org Hi On 2018-11-06 20:27, Alex Vong wrote: > swedebugia 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." >>> >>> "=C2=A0 --disable-wrapping=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Disable all = hard-wrapping of text" >>> >>> We only compile with this: >>> >>> sdb@komputilo ~$ nano -V >>> >>> =C2=A0GNU nano, version 2.9.8 >>> >>> snip >>> >>> =C2=A0Compiled options: --enable-utf8 >>> >> We could do this also by adding the following to our core ~.bashrc >> >> alias nano=3D"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 =3D on screen only, hard wra= p=20 =3D break lines with \n to fit on screen whatever the cost). Soft wrapping is supported with: --softwrap Arch/Antergos has this: $ nano -V =C2=A0GNU nano, version 3.1 =C2=A0Kompileringsflaggor: --disable-wrapping-as-root --enable-utf8 Gentoo warns in their wiki but compile as we do now with utf8.=20 https://packages.gentoo.org/packages/app-editors/nano Nixpkgs uses no arguments=20 https://github.com/NixOS/nixpkgs/blob/1c2d575205f7aa3fc37d64d0606e3fd33de= 08d74/pkgs/applications/editors/nano/default.nix Dunno with other distributions. --=20 Cheers Swedebugia