help-nano
[Top][All Lists]
Advanced

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

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


From: Brian Wengel
Subject: Re: Can you bind a function to CTRL+HOME / CTRL+END
Date: Fri, 10 Jan 2020 10:39:17 +0100

Dear Benno

Thanks for you quick reply.
I'm using version 3.2 on Debian 10.

I just tested this in Chrome's SSH client and it sure works!
But not in puTTY (or KiTTY,  which I normally user, a fork of puTTY).

I guess I have to find a new Windows SSH client.

Sorry for the noise ;-)






On Fri, Jan 10, 2020 at 10:10 AM Benno Schulenberg <address@hidden> wrote:

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


reply via email to

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