Re: Can you bind a function to CTRL+HOME / CTRL+END
Benno Schulenberg <[email protected]> Fri, 10 Jan 2020 10:10:05 +0100
| Newsgroups | gmane.editors.nano.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Brian, Op 09-01-2020 om 23:44 schreef Brian Wengel: > I would like to assign jump to first and last line using ^HOME and ^END. Which version of nano are you using? Because ^Home and ^End are bound by default since 2.8.1, and ought to be working on most terminals since 2.8.2. (There may be some terminals that swallow ^Home and ^End for their own use, in which case nano never sees the keystroke.) > Tried to add the following in /etc/nanorc > **************************************** > bind ^home firstline main > bind ^end lastline main > **************************************** > But that doesn't work? Nano does not support rebinding any of the cursor movement keys. They have a fixed meaning. But since nano-2.8.1 the Ctrl+Home and Ctrl+End keystrokes already do what you want them to do. Benno
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEv9AJBh5TUFKtDfIVDSjU0qCs6IQFAl4YP3UACgkQDSjU0qCs 6ISisQ//ZPyR1MCty9SGetFyFhJezg8FrJxWiUNdzYxmZWhP2EgoriJtqd5GBbg3 sLlBHQxW5wTcymdsuUWWUg7WKhXYFIKGeQyw3MzH7JQqdCLmKBB5hUMx4BFn11U0 sI21zqSoQReMXMBxhWIBPrO0l/rgF4+CFG5bw3pi4xu/uuSshFrpgZ6tNuBHTkzP qhWPPBXXBgc3D3mzOL6cCBcsJ1bFz4szf4UovdJTivwQFgKvGm59UJ1Z4JsxOV3o L4cdb04Z+vUc9G4Cv2jaX8x/LNH8R1KoQRmpbLeV8GiRsByp1lbD1bSaZPJ18+rY gBC5TAOp1aUaIme7DTnpaqn8XeSOeC+TEUioTA0Xt5deVNrxOvQ5ZmebixFfvsdW 04Ig87LL+V4JWBsG/Q/QPfT0b6exPEhdsod46C5mEmHBy91xvB6k2mtpBT45H8aJ 5k4eXIIWj2J2soDRUxLTCzNBFBmA7talY0m5HgN96Kxwphu7l7Hy8z19GVhfnn+M I680ZpHYREfrOXnfImb+8BHmcgAv2LRVZXE18MCA3HODPHnqip6UXQlK/31FFaeH PrdF68ciY+MnPu9sTywALHPH4z4CUCrmTrRv49kiHMLCJKw8H9PdNgxxtEyOLw2i 3fSyTol3rlhQ3BU7TfdMq8d1DEEsV8pFIP3qBThC9Jdb5socT/c= =Eeho -----END PGP SIGNATURE-----