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

Adding configurable keybindings for up/down arrows #499

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gwendolyngoetz
Copy link

This PR changes the KeyArrowUp and KeyArrowDown to pull from the keybindings config. Up and down arrows are still the primary keybindings for moving between items on a page, but J and K are now alternates (to act like Vim).

This partially contributes to the request in #129.

Let me know if you need me to make any changes. Thanks!

joschi added a commit to joschi/dive that referenced this pull request Nov 7, 2024
)

* Adding configurable keybindings for up/down arrows (`k` and `j` vim motions can be used as alternative to up/down arrows).
Thanks to @gwendolyngoetz for implementing this feature [Adding configurable keybindings for up/down arrows wagoodman#499](wagoodman#499)
* Add configurable keybindings for left/right arrows (`h` and `l` vim motions can be used as alternative to left/right arrows)
* Add `u` and `d` keys for page up/down alternatives (I didn't want to replace default `ctrl+u` toggle-unmodified-files keybinding so I used`u` and `d` like `Vimium` extension )
* Add `esc` key to close filtering (Implemented a new method by utilizing the existing toggle filter method, without touching its current behavior)

Refs wagoodman#129
Refs wagoodman#415
Refs wagoodman#499

Co-authored-by: Gwendolyn Goetz <[email protected]>
Co-authored-by: Mehmet Ümit Özden <[email protected]>
joschi added a commit to joschi/dive that referenced this pull request Nov 7, 2024
)

* Adding configurable keybindings for up/down arrows (`k` and `j` vim motions can be used as alternative to up/down arrows).
Thanks to @gwendolyngoetz for implementing this feature [Adding configurable keybindings for up/down arrows wagoodman#499](wagoodman#499)
* Add configurable keybindings for left/right arrows (`h` and `l` vim motions can be used as alternative to left/right arrows)
* Add `u` and `d` keys for page up/down alternatives (I didn't want to replace default `ctrl+u` toggle-unmodified-files keybinding so I used`u` and `d` like `Vimium` extension )
* Add `esc` key to close filtering (Implemented a new method by utilizing the existing toggle filter method, without touching its current behavior)

Refs wagoodman#129
Refs wagoodman#415
Refs wagoodman#499

Co-authored-by: Gwendolyn Goetz <[email protected]>
Co-authored-by: Mehmet Ümit Özden <[email protected]>
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.

1 participant