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

Add custom keybinds to config #138

Merged
merged 1 commit into from
Apr 1, 2024
Merged

Add custom keybinds to config #138

merged 1 commit into from
Apr 1, 2024

Conversation

LucasPickering
Copy link
Owner

This allows you to override the default keybindings. For example, vim bindings:

input_bindings:
  up: [k]
  down: [j]
  left: [h]
  right: [l]
  scroll_left: [shift h]
  scroll_right: [shift l]

Closes #137

@LucasPickering
Copy link
Owner Author

@quantonganh This should allow you to do vim keybindings. If you could test this out and make sure it works for you I'd appreciate it. You can install it like so:

cargo install --git https://github.com/LucasPickering/slumber --branch custom-keybinds

Depending on how you originally installed slumber, your original version may override that one in PATH. If it's not working do which slumber to make sure it's using the correct version.

@quantonganh
Copy link
Contributor

@LucasPickering Thank you for implementing this. It works as expected.

To anyone who also want to use vim key bindings, don't forget to bind the select_recipe_list to another key (I use e which stands for endpoints) to make it not conflict with the right action.

@LucasPickering
Copy link
Owner Author

@quantonganh Thanks for noticing that, I just updated the docs to rebind select_recipe_list as well. I'll merge this and release today.

@LucasPickering LucasPickering enabled auto-merge (rebase) April 1, 2024 12:17
@LucasPickering LucasPickering merged commit 2d5e618 into master Apr 1, 2024
10 checks passed
@LucasPickering LucasPickering deleted the custom-keybinds branch April 1, 2024 12:18
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.

[Feature request] Support vim key bindings
2 participants