From ae15fc9bb261aa14379a504099c5783cd2802f62 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Mon, 24 Apr 2017 16:10:25 +0200
Subject: [PATCH] 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.
---
 src/browser.c | 4 ++++
 src/help.c    | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/src/browser.c b/src/browser.c
index 20f30b3c..41b6bcbd 100644
--- 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
index 1b2be872..3849aec4 100644
--- 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':
-- 
GitLab