Skip to content

Add key bindings to scroll the "Staged changes" pane #4458

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

Closed
xuyangyuio opened this issue Apr 3, 2025 · 3 comments
Closed

Add key bindings to scroll the "Staged changes" pane #4458

xuyangyuio opened this issue Apr 3, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@xuyangyuio
Copy link

On the Files pane, when a partially staged file is focused, the keys for ScrollUpMain and ScrollDownMain can scroll the "Unstaged changes", but there is no key binding to scroll the "Staged changes" pane (mouse works though).

@xuyangyuio xuyangyuio added the enhancement New feature or request label Apr 3, 2025
@stefanhaller
Copy link
Collaborator

Mouse wheel is perfect for me for this (two fingers on the track pad, actually). I wouldn't want to remember another pair of key bindings for this, especially when it can only scroll line by line, which is so slow.

But the situation is going to improve with #4429, which lets you focus the unstaged changes pane so that you can navigate it normally using arrow up/down, , and . and all the other navigation keys; and then you can press tab to switch over to staged changes and do the same there. I encourage you to try out the PR and give feedback. (It's not quite finished yet, but it should work well enough for testing already.)

@stefanhaller
Copy link
Collaborator

@xuyangyuio I just pushed an update to #4429, I consider this ready now.

@xuyangyuio
Copy link
Author

@stefanhaller amazing job! close issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants