Re: [Feature request] Configuration option for modernbindings

Benno Schulenberg <[email protected]>
Newsgroups gmane.editors.nano.devel
Message-ID <[email protected]>
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
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEFo5vQpe/16ea/USWUUu+Lrjhlh8FAmbAQIsFAwAAAAAACgkQUUu+Lrjhlh8h
1Q//VWkFWqymFlc+2vU0lLb5JuhaGF7rDqPZSLj4hUDCoGE8Wr+qDOCaqUeQrC+h8m7B2Jy+lI0t
hDzVJeenOUQtCNbxfkdoxmifXhCWj770uJadinmiSus+g92wZGSWNdwWFqz8wlAHM8Az2ufpUndP
fbP1AfzNpVorrjzx28Z5XeSH7Af5wsAnpHpHRFxsSAaZRuQN9Dao+aKzSGGYDgpcT+WO/JbaX5Dh
wdHyltX8Yeu9nqRW+gctlFwrE/UR5AGHOuJdRlqws83WNmTgY619/BsxYlG2jA+OZVJMsd5GcpY/
I6MGxwaNZar6Byj/4cX6yNs/LHcz4fR3Mlfk6U5g/OYZIX/3iRdlfsNhkpZyQlYyetKlSYuLRWE2
v+5gh3ndK7AYDWUqiw9nRB0gDj4AZAU3hWWGSEIxl4Vw8KnBRJhhLltW6hD6J4yL8wSu6fO+U9xY
kHhe3jTcM96DrWafFituXih47PwvQRDooHePtSwCrw87ZD7ZyInQO58dMD9uAybLYQy3g9CDYtPX
JYdp+jIC2nO4JXAtduA5Pu0YctfDnWwm0atKi6TspqsqvDWVbBIGebO0lY+rOsxzte7YXrs6kNaK
jY0Wm4A8uyOzEspqYisfLXviJ0GSN+go7MdAy3OdC3c4hItU+I2mLlZR+gyZRDDzeQfxro3qCR7+
gVs=
=ucoK
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.