walk icon indicating copy to clipboard operation
walk copied to clipboard

Add vim key bindings hjkl

Open kencx opened this issue 3 years ago • 4 comments

Adds support for hjkl. Closes #2.

Fuzzy search mode is activated with / and deactivated with Esc. Changing directories also deactivates it.

For now, this is a breaking change. Making it configurable with export LLAMA_VIM_KEYBINDINGS=true seems to require multiple switch case statements, which is quite messy imo. Unless there is a better way?

Note: The git diff seems to have gone wonky after nesting the switch statement within an else.

kencx avatar Dec 12 '21 06:12 kencx

Current mode should also be available.

antonmedv avatar Dec 12 '21 09:12 antonmedv

which is quite messy imo.

So this is a challenge. Add feature and simply code.

antonmedv avatar Dec 12 '21 09:12 antonmedv

Managed to implement configurable vim mode.

Any feedback is appreciated :)

kencx avatar Dec 12 '21 12:12 kencx

Updated with the recent changes.

kencx avatar Dec 16 '21 11:12 kencx

Done!

antonmedv avatar Nov 14 '22 07:11 antonmedv