-
Notifications
You must be signed in to change notification settings - Fork 229
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
Enable j/k navigation in the RHS sidebar panels #196
base: main
Are you sure you want to change the base?
Conversation
Thanks for the patch! I see what you're getting at, but I find the resulting user experience a bit confusing. The cursor keys navigate within and across the RHS panels, but j/k only navigate within the panels. That's a tad weird, and I can see how it would confuse users. |
This reverts commit c740c50.
Works by passing "up" or "down" keypress messages to the Pile widget, so there is no difference between using j/k and using the up/down arrow keys.
I see what you're saying. I reworked it so that j/k in the sidebar area work the same as the up and down arrows. |
Crashes:
To reproduce:
|
Forgot to say: Thank you for your contribution--I like the idea! |
I actually think the original version was better where it didn't jump between windows with j/k. Any chance we could get that? |
At the very least, this could be configured via a setting option? I have no physical arrow keys on my keyboards (vim binding all the things!), so having the ability to scroll within a sidebar menu with j/k would be awesome. @inducer: if you're willing to merge this functionality (e.g. enabled with a setting that is disabled by default so as not to confuse users out of the box), I would be willing to adopt this MR and try to implement it. |
Sure, I could see merging a competent implementation of the concept, behind a default-off setting. |
Thanks for offering! |
I found it very annoying to have to move my hand to the arrow keys to navigate in the sidebar panels. This patch make j/k work for down/up like in the source panel.