Skip to content
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

Conversation

dalanicolai
Copy link
Contributor

@dalanicolai dalanicolai commented Dec 5, 2020

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.

Copy link
Collaborator

@smile13241324 smile13241324 left a 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) |
Copy link
Collaborator

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.

Copy link
Contributor Author

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?

Copy link
Collaborator

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.
@dalanicolai dalanicolai force-pushed the add_Info_mode_scroll_keybindings_to_navigation_layer branch from e553c81 to 477bfbc Compare December 11, 2020 09:35
@smile13241324 smile13241324 merged commit c595640 into syl20bnr:develop Dec 13, 2020
@smile13241324
Copy link
Collaborator

Thank you for contributing to spacemacs 💜, I have cherry picked your commit into develop.

dalanicolai added a commit to dalanicolai/spacemacs that referenced this pull request Dec 18, 2020
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.
smile13241324 pushed a commit that referenced this pull request Dec 18, 2020
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.
dalanicolai added a commit to dalanicolai/spacemacs that referenced this pull request Dec 19, 2020
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.
yyoncho pushed a commit to yyoncho/spacemacs that referenced this pull request Jan 26, 2021
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.
adamczykm pushed a commit to adamczykm/spacemacs that referenced this pull request Jan 28, 2021
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.
@dalanicolai dalanicolai deleted the add_Info_mode_scroll_keybindings_to_navigation_layer branch February 15, 2021 10:08
aam-at pushed a commit to aam-at/spacemacs that referenced this pull request Mar 23, 2021
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.
wang-d pushed a commit to wang-d/spacemacs that referenced this pull request Jul 22, 2021
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants