[Top][All Lists]

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

Re: [Nano-devel] [PATCH] options: new --nofilename/-f command line optio

From: Piotr H. Dabrowski
Subject: Re: [Nano-devel] [PATCH] options: new --nofilename/-f command line option added
Date: Wed, 18 Apr 2018 20:31:12 +0000

> This makes ^O equivalent to ^S.  What do we gain with that?

^S is not enabled by default in most distributions.
I haven't even known about it until now, and no online tutorial even mentions it, they all say about ^O.

^S is also often captured by terminal emulators for software flow control  (XON/XOFF).

And finally ^S must be bound manually in the nanorc config file, right?
It would be nice to have something that works out of the box on every machine I randomly use.

> But... to add an extra option just for that?

The reason for all this is using nano as an editor for git:
"editor = nano -f"
One standard behavior for normal editing, and an easy to setup --nofilename/-f option for git (that uses many temporary files which names should not be changed).

But I guess modifying the --tempfile behavior now isn't the best idea?

> I think the extra <Enter> is not too much to ask

In some cases it is. I use multilingual environment. In English binding for Yes is Y, in Polish it is T.
So now I often tend to quickly press: <^X><Y><T><Enter> or <^X><T><Y><Enter>.
Ending up with "y" or "t" (depending on my current LANG) appended to my filename...

It would be nice to have a "discard-and-exit" command available for binding as well. Alongside current "exit" and "writeout". What do you think?

Piotr H. Dabrowski

reply via email to

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