-
Notifications
You must be signed in to change notification settings - Fork 275
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
Info mode keybindings / follow links with o
#458
Comments
I recommend using the blacklist for that to avoid conflicts.
If there was some sort of vim-like precedent for that pattern, it would be welcomed. Otherwise, it would seem to be more spacemacsy.
That does seem a little much, I think the C-d/C-u scrolling commands are pretty good. Having said that, I don't often us the pdf/help type modes that often.
I believe from some discussion a while back when this project was started to put 'o' on sorting type functionality and 'go' on types of open links commands.
Example? |
Well about the vim-like precedent for
(see how it works, and compare it to how you are cycling through recent buffers now) About Examples of Anyway, I am not trying to be stubborn, just thoroughly discussing;) I am very happy to otherwise use the blacklist. Thanks for that suggestion. |
The precedence for C-j/C-k is mostly from predecessor packages like evil-magit/evil-mu4e.
I see. On the other hand, for me, buffer switching is a solved problem for me using a prefix key + b to trigger ivy/counsel/etc directly. I'm usually not interested in cycling buffers. This suggestion, I think lends better to personal customization.
Could you clarify what you expect ]] and [[ to be bound to? FWIW, we have this section related:
The unimpaired style keys also take some precedence with [ and ] being prefixes.
I don't think everyone will be happy will every set of binding decisions we make so it's better to "pick one and go with it", in my opinion.
Right, but they are still vim style bindings, and because of that, would be reasonable for us to bind in a similar way. Which allows vim users that migrate to emacs to be able to use C-u/C-d in a DWIM way.
I would've liked in the past to use "o" for open but I think we settled on it being related to sorting instead, and "go" being "open".
I think for modes, that don't have sorting involved, binding open to both 'go' and 'o' might be a reasonable solution. As for implementing this -link-hint-open-link-, it would involve creating a new evil-collection-[PACKAGE] and writing with-eval-after-loads on those other packages to bind those keys.
Thanks for the suggestions, they are definitely appreciated. I don't think all bindings are perfectly polished yet so suggestions/PRs are always welcome. |
Forgot to ask about this, but I wonder why that is. |
We can switch buffers in Spacemacs also with So the The So I guess for the Okay, thanks for answering and considering the suggestions. |
The |
Because evil-magit is a part of evil-collection and removed from MELPA. |
That should be clear from the post itself but doesn't explain anything.
I think spacemacs' integration probably needs some tweaking then. As I understand it, spacemacs has its own set of unimpaired bindings. In that case, the integration for evil-collection's unimpaired should be turned off. |
Totally understand, the question is, are vim users going to expect c-tab to do what you've set it it to or is it just a convenience thing that you've set up? Until this thread, I didn't realize there was even a 'c-tab' 'style' and I'd be surprised if c-tab started being bound to buffer switching related actions.
These should probably be reasonable to add and wouldn't conflict with unimpaired.
Can you take a look at the other modes and see which ones could use these J/K style bindings -without conflict- so we can potentially form a pattern and build a new consensus binding. If we only bind J/K for info, I don't think that's very useful and should be kept to a personal config. If we can find multiple modes to J/K without conflict, there may be more value there. Additionally, I am thinking we can gate the J/K bindings under something like evil-collection-want-JK-to-scroll. To be clear, I'm not for it yet, but I'm not against it either. |
@jojojames Thanks for coming back to it. I agree that Spacemacs settings require some tweaking. But before tweak things there, I thought let's discuss things first here. Just to be clear, I would not call myself a Spacemacs developer, I just like to suggest/implement improvements there also. (So my suggestions/opinions/requests are on my personal account). So about the Well I think |
Hi @dalanicolai , sounds good. Since there's a mix of potential suggestions and personal user config bindings, if you could list which bindings you'd put the in "suggest category", that'd be very helpful for me. |
Ah yes sure. So I would suggest to bind:
COMMENT
|
This should be possible, I'd ask for a PR here. It would probably look something like: evil-collection-want-JK-scrolling for a defcustom and then in each mode you'd like the J/K bindings to appear, you can bind those if evil-collection-want-JK-scrolling is true.
This should be doable, I don't remember off the top of my head if we're using ]] for anything, since unimpared doesn't have those bound right now. |
I am opening this issue because, in Spacemacs I was used to scrolling through info nodes using
[
]
, but now that Spacemacs switched to using this package I find that even without using theevil-collection-info-setup
, those bindings have been altered. And when I do setupevil-collection
bindings, then the functionality is underC-j
andC-k
which conflict with other personal bindings. As I very much like the idea of this package, I came here to discuss/suggest possible solutions.A little background... to ease switching between more than only the current and last visited buffers I have recently proposed to add
C-tab
buffer switching to Spacemacs (see here and here, check code for the straightforward implementation details). However, after adding those bindings I realized that I actually never usedC-j
andC-k
in evil. So I looked up those bindings in vim and found they are rather redundant. So then I figured that these would be even more convenient bindings for cycling through recent buffers (using Ivy or Helm) confirming withC-l
(orRET
).So in the end, I guess I would like to ask you to consider other keybindings for this functionality (as I see that single
[/]
are already taken, I would like to mention that from the firefox vimium plugin I am used to scroll through nodes using] ]
and[ [
).Moreover, from the zathura pdf viewer, I was used to flipping pages using
J/K
(capitals). I actually use these bindings myself everywhere to scroll full page, but I guess it would be too much to force this on all evil users.However, I did propose to add these bindings to scroll through the Info pages (see here.
Also, I have found that after evaluating
evil-collection-info-setup
, the bindings to follow links by pressingo
are gone. Now I have found that both Spacemacs (using ace-link) and Doom (using link-hint) use these bindings, so maybe you could just add them here conditionally (if ace-link/link-hint package installed. link-hint seems to be more "powerful" b.t.w.).Well, I just wanted to share my thoughts about these bindings here and I hope you will seriously consider their convenience and logic. Of course, I am not here to tell you about which keybindings I am used to. I really think that these bindings make a lot of sense and are, objectively, very convenient.
I am happy to create a PR for (some of) the bindings if you like some of them. Otherwise, no problem of course, I can just set them in my personal setup.
Finally, thanks for this very useful initiative/package! 👍
The text was updated successfully, but these errors were encountered: