-
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
In navigation layer, Bind J/K to scroll up/down in Info-mode #14188
In navigation layer, Bind J/K to scroll up/down in Info-mode #14188
Conversation
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.
I like the new bindings for info-mode however I think the bindings must be moved into the general documentation.
|
||
| Key binding | Description | | ||
|-------------+----------------------------| | ||
| ~J~ | Scroll up (or next node) | |
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.
I think this should rather be moved into the documentation instead.
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.
Ah did not realize that. So I have updated the PR.
UNRELATED: wouldn't this new github feature be handy for Spacemacs development?
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.
Maybe lets discuss it in a separate issue 👍
Spacemacs lacks a keybinding alternative to the most natural way of scrolling Info pages (i.e. SPC) in vanilla emacs. Anyway, this commit adds J/K to scroll most naturally through info pages. Currently, in Info-mode, a keybinding for J is not defined while K is bound to evil-lookup. Issue syl20bnr#2828 already adresses the inconsistent experience, and in my opinion this can and should be improved as navigating Info pages is a very crucial part of using Emacs. Personally I have bound J/K to scroll page up/down in buffers/pdf/djvu/doc-view, which I inherited from using the zathura pdf reader, and I think this is a better default than the default vim alternatives.
e553c81
to
477bfbc
Compare
Thank you for contributing to spacemacs 💜, I have cherry picked your commit into develop. |
Similar to the keybindings added to the info layer in PR syl20bnr#14188, I here propose to add the same keybindings to the epub layer. These J/K keybindings are currently undefined in the epub layer. These keybindings are used in the Zathura document reader, they are very convenient and I guess they feel very natural and are preferred over d/u by most people.
Similar to the keybindings added to the info layer in PR #14188, I here propose to add the same keybindings to the epub layer. These J/K keybindings are currently undefined in the epub layer. These keybindings are used in the Zathura document reader, they are very convenient and I guess they feel very natural and are preferred over d/u by most people.
Similar to the keybindings added to the info layer in PR syl20bnr#14188, I here propose to add the same keybindings to the epub layer. These J/K keybindings are currently undefined in the epub layer. These keybindings are used in the Zathura document reader, they are very convenient and I guess they feel very natural and are preferred over d/u by most people.
Similar to the keybindings added to the info layer in PR syl20bnr#14188, I here propose to add the same keybindings to the epub layer. These J/K keybindings are currently undefined in the epub layer. These keybindings are used in the Zathura document reader, they are very convenient and I guess they feel very natural and are preferred over d/u by most people.
Similar to the keybindings added to the info layer in PR syl20bnr#14188, I here propose to add the same keybindings to the epub layer. These J/K keybindings are currently undefined in the epub layer. These keybindings are used in the Zathura document reader, they are very convenient and I guess they feel very natural and are preferred over d/u by most people.
Similar to the keybindings added to the info layer in PR syl20bnr#14188, I here propose to add the same keybindings to the epub layer. These J/K keybindings are currently undefined in the epub layer. These keybindings are used in the Zathura document reader, they are very convenient and I guess they feel very natural and are preferred over d/u by most people.
Similar to the keybindings added to the info layer in PR syl20bnr#14188, I here propose to add the same keybindings to the epub layer. These J/K keybindings are currently undefined in the epub layer. These keybindings are used in the Zathura document reader, they are very convenient and I guess they feel very natural and are preferred over d/u by most people.
Spacemacs lacks a keybinding alternative to the most natural way of scrolling
Info pages (i.e. SPC) in vanilla Emacs.
This commit adds J/K to scroll most naturally through info pages.
Currently, in Info-mode, a keybinding for J is not defined while K is bound to
evil-lookup.
Issue #2828 already addresses the inconsistent experience, and in my opinion this
can and should be improved as navigating Info pages is a very crucial part of
using Emacs.
Personally I have bound J/K to scroll page up/down in buffers/pdf/djvu/doc-view,
which I inherited from using the zathura pdf reader, and I think this is a better
default than the default vim alternatives.