From e5c599c35b42cfc0daa18afa3da02f7ab39b66e6 Mon Sep 17 00:00:00 2001 From: Devin Jacobs Date: Thu, 14 Nov 2019 22:29:11 -0700 Subject: [PATCH] Improve Info-mode searching --- modes/info/evil-collection-info.el | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/modes/info/evil-collection-info.el b/modes/info/evil-collection-info.el index d0f981b..12e8187 100644 --- a/modes/info/evil-collection-info.el +++ b/modes/info/evil-collection-info.el @@ -70,14 +70,9 @@ ;; TODO: Restore digit arguments? Use g[n] instead. - ;; TODO: Should search with "n"/"N" cover the full manual like "C-s"/"C-r" does? - ;; TODO: Directions? - "n" (if (evil-collection-evil-search-enabled) - evil-collection-evil-search-next - 'isearch-repeat-forward) - "N" (if (evil-collection-evil-search-enabled) - evil-collection-evil-search-previous - 'isearch-repeat-backward) + ;; NOTE: We do NOT search the entire buffer, only the narrowed buffer. + "n" evil-collection-evil-search-next + "N" evil-collection-evil-search-previous ;; goto "gd" 'Info-goto-node ; TODO: "gd" does not match the rationale of "go to definition". Change? @@ -97,7 +92,7 @@ "gk" 'Info-prev "g?" 'Info-summary - "?" 'evil-ex-search-backward ; Else this would be `Info-summary'. + "?" evil-collection-evil-search-backward ; Else this would be `Info-summary'. ;; quit "q" 'Info-exit