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

Vim keybindings #6

Open
zachvalenta opened this issue Apr 26, 2021 · 6 comments
Open

Vim keybindings #6

zachvalenta opened this issue Apr 26, 2021 · 6 comments
Labels

Comments

@zachvalenta
Copy link

First off, cool looking project!

Rn it seems primary navigation via arrow buttons:

Navigate the list with ↓↑ arrows and hit enter ⏎ to switch into selected branch.

How about Vim keybindings?

@mykolaharmash
Copy link
Owner

Hey. Thank you for the suggestion!

Do you imagine something like ctrl+j/k instead of arrows?

@zachvalenta
Copy link
Author

I was thinking just j/k themselves to stay on the home row. But ctrl+j/k workable as well.

@mykolaharmash
Copy link
Owner

The issue with pure j/k is that it's going to clash with the search string input, so I think there is no way around some modifier key, unfortunately. ctrl would be a good candidate as some popular tools like fzf use it as well and a lot of people might be used to it already.

@zachvalenta
Copy link
Author

Good point on both counts! I think broot might do the same.

@mykolaharmash
Copy link
Owner

I'll try to find time to work on git-jump in the next couple of weeks, hopefully, will manage to squeeze in the Vim navigation 🤞

Btw, I personally love Vim navigation and have a simple setup with Hammerspoon to use it globally in macOS. Here is my config, using it I can use CapsLock + h/j/k/l instead of arrows in any text field and any app. Tbh, I don't remember when I touched the arrow keys the last time 🙂 Just a side note, might be helpful to you as well.

@zachvalenta
Copy link
Author

Whoa, very cool, I've never come across Hammerspoon before...thanks for the tip!

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

No branches or pull requests

2 participants