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 keybinds #80

Open
GideonWolfe opened this issue Mar 4, 2020 · 2 comments
Open

vim keybinds #80

GideonWolfe opened this issue Mar 4, 2020 · 2 comments

Comments

@GideonWolfe
Copy link

The problem

When I open this program my hands instinctively try to adjust the map using the vim keys. This is the natural mode of navigation for countless TUI programs.

Proposed solution

h,j,k, and l are the classic left, down, up, right controls. You could keep zooming as a and z, but I would love to use J and K.

Additional context

I don't believe these keybinds would interfere with any preexisting options, and non vim users could easily stick to the arrow keys.

This also provides a framework for more keybinds. For example if you implement a search feature, the / key is already most peoples go-to and it makes the program easy to learn.

@GideonWolfe
Copy link
Author

I'm not sure how much work would need to be done but I just took a quick look at the source and it seems like someone already had a similar idea?

@nahanil
Copy link

nahanil commented Mar 5, 2020

HA! hjkl was my first reaction when I found this as well - looks they were added in fccacad and work if running with npx but not in the wild :(

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

No branches or pull requests

3 participants