nano-devel
[Top][All Lists]
Advanced

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

Re: [Feature request] Configuration option for modernbindings


From: Benno Schulenberg
Subject: Re: [Feature request] Configuration option for modernbindings
Date: Sat, 17 Aug 2024 08:17:47 +0200
User-agent: Mozilla Thunderbird


Op 17-08-2024 om 00:35 schreef theaz7ieth5e--- via Development discussions.:
I would like to enable the modern bindings by default on my machines, however, currently the only way to switch them on is to pass a flag (-/, --modernbindings). I want running `editor` or `nano` to always use the modern bindings, so I made `nano` an alias to `nano -/` in my shell, but this doesn't work all the time—running `sudo editor` or `systemctl edit` bypasses the shell. I'd like to propose a nanorc config line that enables modern bindings, such as `set modernbindings`.

During startup, nano sets up the default bindings _before_ reading the
rcfiles [1], so the only way to influence these default bindings is via
a command-line option.

[1] 
https://git.savannah.gnu.org/cgit/nano.git/tree/src/nano.c?id=fe39d137c7#n2168

If you want those "modern bindings" also when nano is not invoked via
the shell, then copy and uncomment the last block of doc/sample.nanorc
to your .nanorc files.


See also https://savannah.gnu.org/bugs/?66072 .


Benno

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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