-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add keys to browse back and forward in help-mode #4014
Add keys to browse back and forward in help-mode #4014
Conversation
Maybe using (also) |
@StreakyCobra u and d are undefined.what do you want me to bind them to? :) N/n are already bind to |
Retracted |
These functions don't scroll, they go back and forward between pages, like in a browser. |
In info the |
Yeah, as I said in my previous (wrong) comment, I use |
I mean keys |
I'm not sure
|
@StreakyCobra I didn't touch to |
@@ -50,6 +50,14 @@ | |||
;; let TAB jump between links in help buffers | |||
(evil-define-key 'motion help-mode-map (kbd "<tab>") 'forward-button) | |||
(evil-define-key 'motion help-mode-map (kbd "S-<tab>") 'backward-button) | |||
;; let n and p to navigate between pages | |||
(evil-define-key 'motion help-mode-map (kbd "f") 'help-go-forward) | |||
(evil-define-key 'motion help-mode-map (kbd "b") 'help-go-back) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are adding f
and b
here no? Or did i missed something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, forgot I made a mistake as it seems: cf the comment :D
02c5bf7
to
6cc7b02
Compare
@@ -50,6 +50,14 @@ | |||
;; let TAB jump between links in help buffers | |||
(evil-define-key 'motion help-mode-map (kbd "<tab>") 'forward-button) | |||
(evil-define-key 'motion help-mode-map (kbd "S-<tab>") 'backward-button) | |||
;; let n and p to navigate between pages | |||
(evil-define-key 'motion help-mode-map (kbd "n") 'help-go-forward) | |||
(evil-define-key 'motion help-mode-map (kbd "p") 'help-go-back) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But now n
is also used by evil for searching 😜
Simply keep [
and ]
for sure, and s
, u
and d
if you think they are useful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed. ^^
Add keys to browse back and forward in help-mode cf syl20bnr#2698 Add new key in help-mode Last changes for motion in help buffer
6cc7b02
to
6eece52
Compare
modified and accordingly, and squashed commit |
👍 |
:) |
I'm not sure we need |
@syl20bnr Applied your recommandations :) |
Thank you 👍 |
@syl20bnr great :) |
Implemented #2698
and + follow symbol with s