nano

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

commit ae15fc9bb261aa14379a504099c5783cd2802f62
parent b3b3dd579278b6c322056509142fa701d5c2b700
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Mon, 24 Apr 2017 16:10:25 +0200

bindings: allow using '/' to start a search in the help viewer

And allow 'N' for searching the next occurrence.  Add the
same keystrokes to the file browser too, for consistency.

Diffstat:
Msrc/browser.c | 4++++
Msrc/help.c | 7+++++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/browser.c b/src/browser.c @@ -490,7 +490,11 @@ functionptrtype parse_browser_input(int *kbinput) return do_enter; case 'W': case 'w': + case '/': return do_search; + case 'N': + case 'n': + return do_research; } } return func_from_key(kbinput); diff --git a/src/help.c b/src/help.c @@ -574,6 +574,13 @@ functionptrtype parse_help_input(int *kbinput) return do_page_down; case '-': return do_page_up; + case 'W': + case 'w': + case '/': + return do_search; + case 'N': + case 'n': + return do_research; case 'E': case 'e': case 'Q':