Re: Key bindings

Benno Schulenberg <[email protected]> Mon, 25 May 2020 09:22:54 +0200
Newsgroups gmane.editors.nano.general
Message-ID <[email protected]>
Op 24-05-2020 om 20:10 schreef Marcus Rhodes:
> Is there any way to bind Ctrl and navigation keys such as home, end, etc.? I'd
> like to use the same keystrokes that work with most other editors, like Ctrl+Home
> to jump to the first line, Ctrl+End to jump to the last line, etc. If not, can we
> get that added to a pending features list?

What version of nano are you using?  Since nano-2.8.1 Ctrl+Home and Ctrl+End
should already do what you want them to do.  If that is not the case, what
terminal/emulator are you using?  It ought to work fine at least on xterm,
on all VTE-based emulators (like Gnome Terminal and Xfce Terminal), and on
the Linux console.  It does not work on the BSD consoles.

To answer your question: nano does not provide a mechanism to rebind any
of the dedicated cursor-movement keys (with or without Shift/Ctrl/Alt).
There are no plans to make this possible.

Benno
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEv9AJBh5TUFKtDfIVDSjU0qCs6IQFAl7LclcACgkQDSjU0qCs
6ISTRg/8D7KGnxhlrg31EG+hoSGaLK9UBrWZK0dgo38lVxtxBInJerjzt2zBMGAc
+EUt4AOkMSdrOi81HJ3j3Ig0booEbNvHxRSsDwJiRByR1gBNhmKbIVMI2o2fzx5Y
Z+G1Pby+l3Y+0cvYektV0qd81Aoq7o8wPb2dBEzqCa/1F7Qy+PeVkhsq8kzmdXZr
FS+hF2VLqabz9fwOwSPXvfbrMjKCo9wgnh/lvzUm92QWSJJ2wLUfhGGn9WamgMun
sfMUNEJ1sW2cRSz659U/hUVNwT18ISzNG9tjtfyac+4Nm/h4EjfpYeD1LsRRfCtj
Cmmwn6PLFBcBvQGukDv7eB0jbuIPD04uXefoOUXXl6bTe9bha2kNgHMyZDT6W8fQ
A8WSiFI6ruFspXviTJJNK7qZ0MnYLQBGO1DeHpVWBqgu/AB/qoz6SxRMd+MM/FiO
ZEUsJhm4Pk6w+/NH6xUbH5rdwB8MFB1+f6QQqbSOh4iM+z0jNGcu0lOsm/yyoO9O
gbJoFtKvBKH78skQs53YHGlqAqngW0Z8WWxyBzTNndTj7RXrRKbbVqFs8w2hkZO5
NYubxz3HImmFyXXqQAWQF2B45Lob7iogjwtSo0xyZwS1NkeW7K99+8ksFtdsW/oT
6oSqbMtdX8rOHFRzqgNYOajS5COn0LGwH9LsKVaoFfYs9dbi1hM=
=wDkk
-----END PGP SIGNATURE-----