Re: Fedora 33 System-Wide Change proposal: Make nano the default editor

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

 



On Fri, 2020-06-26 at 16:31 +0000, Zbigniew Jędrzejewski-Szmek wrote:
> On Thu, Jun 25, 2020 at 01:18:59PM -0400, Ben Cotton wrote:
> > == Scope ==
> > * Proposal owners:
> > ** Modify comps to include nano Fedora wide.
> > ** Create a new subpackage of <code>nano</code>, called
> > <code>nano-editor</code>.
> > ** <code>nano-editor</code> to include
> > <code>/usr/lib/environment.d/10-nano.conf</code>, which sets
> > <code>$EDITOR</code> to <code>nano</code>.
> 
> There's one nitpick with using nano in 'git commit' and similar: it'll
> ask about the name to save as:
> ^X
> Save modified buffer? Y
> File Name to Write: /home/zbyszek/src/systemd/.git/worktrees/systemd-work/COMMIT_EDITMSG
> 
> Would it be possible to skip this last question in those scenarios?
> It the answer is "no", that's OK, but if it would be easy, it'd make
> usage a bit nicer. 'vi' and 'emacs -nw' don't ask.

So I poked at this a bit. nano has a -R which is documented thus:

       -R, --restricted
              Restricted mode: don't read or write to any file not specified on  the  command  line.   This  means:
              don't  read or write history files; don't allow suspending; don't allow spell checking; don't allow a
              file to be appended to, prepended to, or saved under a different name if  it  already  has  one;  and
              don't make backup files.  Restricted mode can also be activated by invoking nano with any name begin‐
              ning with 'r' (e.g. "rnano").

but the funny thing is, even if you use it, when you hit ctrl+O it
still asks you what filename to save under, it just doesn't let you
actually change the name at all. So that seems like it might help, but
doesn't really :/
-- 
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | XMPP: adamw AT happyassassin . net
http://www.happyassassin.net
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux