rastapasta/mapscii

vim keybinds

Open

#80 aperta il 4 mar 2020

Vedi su GitHub
 (2 commenti) (6 reazioni) (0 assegnatari)JavaScript (231 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (6790 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor