|
From: | Brian Wengel |
Subject: | Re: Can you bind a function to CTRL+HOME / CTRL+END |
Date: | Fri, 10 Jan 2020 10:39:17 +0100 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |