On 2016-04-20 09:44, Arturo Borrero Gonzalez wrote:
> In bash-like shells there are two nice shortcuts:
>  * CTRL+w (delete previous word)
>  * ALT+d (delete next word)
> 
> Is there any chance that similar shortcuts gets implemented in nano?

You mean that you would like the functions cutwordleft and cutwordright
to be bound by default?  So that you can rely on them being available
on any machine with a modern nano installed without needing any kind
of configuration in ~/.nanorc?

That would indeed by nice, but we don't have any free keys left -- at
least not ones that one might be able to remember.  The best I can come
up with would be an option, say -M/--modern, which would put some keys
to better use.  For example, the toggles M-F and M-B have no place in
the main menu (but the owner of nano uses the M-F toggle, so there is
no chance of changing those in the default config) -- M-F belongs only
in the Read File menu, and M-B in the Write Out menu, where they already
exist, so those keys can be taken without loss of any functionality.

And if it were up to me, I would also remove the M-O toggle (one is
either used to having this blank line or not, one wouldn't want to
toggle between one state and the other, it is not like the help lines).
The same for the M-S toggle.  And the M-T function is such a convenience
thing and so easily done with M-A, M-/, ^K, that it's not worth it taking
up a key.

So, if we have those keys freed up, M-B, M-F, M-O, M-S, M-T, and
of course ^S and ^Q, which key strokes would you prefer to use for
cutwordleft and cutwordright?

Benno

Reply via email to