nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 8e302738e86b4c039a1861b65cf0a30902c80c64
parent aa2568858e5583c6f66b04b53aa4fa86901c4fec
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 31 Mar 2019 13:23:25 +0200

bindings: recognize the ^W^Y and ^W^V legacy keystrokes again

The keystrokes are recognized and acted upon, but they are not visible
in the menu nor in the help text, and they cannot be rebound.  They are
there just to avoid frustrating the muscle memory of long-time users.

This fixes https://savannah.gnu.org/bugs/?56002.
Reported-by: Peter Zwegat <peterzwegat@yopmail.com>

Diffstat:
Msrc/global.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/global.c b/src/global.c @@ -1309,6 +1309,9 @@ void shortcut_init(void) #endif add_to_sclist(MGOTOLINE, "^Y", 0, to_first_line, 0); add_to_sclist(MGOTOLINE, "^V", 0, to_last_line, 0); + /* Some people are used to having these keystrokes in the Search menu. */ + add_to_sclist(MWHEREIS, "^Y", 0, to_first_line, 0); + add_to_sclist(MWHEREIS, "^V", 0, to_last_line, 0); #ifdef ENABLE_BROWSER add_to_sclist(MWHEREISFILE, "^Y", 0, to_first_file, 0); add_to_sclist(MWHEREISFILE, "^V", 0, to_last_file, 0);