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

Improve Info reading experience #2828

Closed
xfq opened this issue Aug 30, 2015 · 6 comments
Closed

Improve Info reading experience #2828

xfq opened this issue Aug 30, 2015 · 6 comments
Labels
Enhancement ☺ Key Bindings stale marked as a stale issue/pr (usually by a bot)

Comments

@xfq
Copy link
Contributor

xfq commented Aug 30, 2015

I'm aware of #902, but using Info mode in Spacemacs is still a PITA. For example:

  • I can't use l to go back to the last node I was at.
  • b goes to beginning of node instead of the beginning of the previous word, and I can't use g g to go to the first line (of the node).
  • Visual mode can't be entered with v.
  • n doesn't repeat the last search.
@sooheon
Copy link

sooheon commented Aug 30, 2015

Yep, this is one of those cases where the modal keys defined by info-mode and evil really clash, and it's unclear which is the best way to reconcile them. FWIW, I think that l behaviour is replicated by C-o, but then C-i is something different, and there isn't any kind of mnemonic symmetry like l and r or C-i and C-o. It's just a complete mixup right now.

I actually think the modal keys of info-mode are well thought out, and prefer just learning them and minimizing vi keys, but others may disagree. Just getting used to emacs keys isn't bad (i.e. M-f M-b for your second point, and C-spc for selection`).

@sexptherapy
Copy link

In my experience I always switch to Holy when browsing Info files. Maybe there could be some sort of warning for the user that in this mode Evil isn't "supported"? Like a red-something in the modeline?

@sooheon
Copy link

sooheon commented Aug 30, 2015

@felipe-barros yeah, just going to holy-mode and doing it the emacs way does seem more "pure" and edge-case free, for things like info-mode or magit. But the vinegar layer here, for example, is a case of evil integration done right, imo.

@sexptherapy
Copy link

@sooheon although after switching to Spacemacs from Vim I see myself more and more inclined to using regular Emacs keybindings everywhere and Vim only for text editing (using Hybrid for now) I'm not against Evil integration at all. But I agree with you that with Magit/Info, default means better, at least for now. I hope it changes somewhere in the future, but for now, I think the only thing missing is a nice warning "hey, this is unexplored land, be careful and if you need help, press h for emacs intro" or something :)

@myrjola
Copy link
Contributor

myrjola commented Sep 2, 2015

What about not evilifying Info-mode at all? I would like to have it modal. In-buffer navigation and visual-mode selections is most comfortable in the normal state. Navigating the Info hierarchy can be done effectively with the standard info-mode keybindings. There was probably some clashes between info-mode and the insert-state, so maybe emacs-state should be used instead of insert state.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
dalanicolai added a commit to dalanicolai/spacemacs that referenced this issue Dec 5, 2020
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 added a commit to dalanicolai/spacemacs that referenced this issue Dec 11, 2020
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.
smile13241324 pushed a commit that referenced this issue Dec 13, 2020
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 #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.
yyoncho pushed a commit to yyoncho/spacemacs that referenced this issue Jan 26, 2021
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.
adamczykm pushed a commit to adamczykm/spacemacs that referenced this issue Jan 28, 2021
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.
aam-at pushed a commit to aam-at/spacemacs that referenced this issue Mar 23, 2021
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.
wang-d pushed a commit to wang-d/spacemacs that referenced this issue Jul 22, 2021
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ☺ Key Bindings stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

5 participants