nano

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

commit 344db835e42ed6d1a2092645a03d5f460f247526
parent 04353acccf0cdd7e563d33da191fcb10001eb096
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 17 Jan 2023 10:56:06 +0100

bindings: let ^/ toggle between the 'search' and 'gotoline' menus

This extra binding allows the user to start a forward search with ^/^/,
so that they can avoid the ^W keystroke that would close a browser tab.

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

diff --git a/src/global.c b/src/global.c @@ -1404,6 +1404,7 @@ void shortcut_init(void) add_to_sclist(MWHEREIS|MREPLACE, "M-B", 0, backwards_void, 0); add_to_sclist(MWHEREIS|MREPLACE, "^R", 0, flip_replace, 0); add_to_sclist(MWHEREIS|MGOTOLINE, "^T", 0, flip_goto, 0); + add_to_sclist(MWHEREIS|MGOTOLINE, "^/", 0, flip_goto, 0); #ifdef ENABLE_HISTORIES add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH|MWHEREISFILE|MFINDINHELP|MEXECUTE, "^P", 0, get_older_item, 0); add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH|MWHEREISFILE|MFINDINHELP|MEXECUTE, "^N", 0, get_newer_item, 0);