rastapasta/mapscii

vim keybinds

Open

#80 opened on Mar 4, 2020

View on GitHub
 (2 comments) (6 reactions) (0 assignees)JavaScript (231 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (6,790 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide