[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH] options: new --nofilename/-f command line optio
Re: [Nano-devel] [PATCH] options: new --nofilename/-f command line option added
Sat, 7 Apr 2018 11:19:23 +0200
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
Op 07-04-18 om 02:47 schreef Piotr H. Dabrowski:
> options: new --nofilename/-f command line option added
> Added option preventing Nano from prompting for a new file name
> when the file name is known.
This makes ^O equivalent to ^S. What do we gain with that?
> Also applies to ^O.
> Unlike --tempfile/-t, it will still prompt for confirmation when
> exiting with changes.
Ah. Well... I must say, I like it that nano immediately saves
and exits when I answer Y after a ^X. But... to add an extra
option just for that?
In my mind, people load a file, edit it, save it, and exit.
I would never want nano to automatically save when I exit: it
robs me of the possibility to exit *without* saving. So in my
mind, --tempfile is an idiotic option. (But it is what Pico
did for -t, so nano copied it.) Your --nofilename option is
what --tempfile should have been in the first place.
With the current key bindings, I think people will learn to do:
edit edit edit ^S ^X. Done. When they do: edit edit [walk-away
come-back-later] ^X [think think] Y <Enter>, I think the extra
<Enter> is not too much to ask -- I think it is a good reminder
of what file is getting written after one has walked away and
tries to exit without having saved first.
Description: OpenPGP digital signature