[Top][All Lists]

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

Re: Can you bind a function to CTRL+HOME / CTRL+END

From: Benno Schulenberg
Subject: Re: Can you bind a function to CTRL+HOME / CTRL+END
Date: Fri, 10 Jan 2020 10:10:05 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

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.


Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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