antonmedv / walk

Terminal file manager
MIT License
3.24k stars 88 forks source link

Vim mode #20

Closed meowgorithm closed 1 year ago

meowgorithm commented 1 year ago

This update enables Vim keybindings when LLAMA_VIM_KEYBINDINGS=true is set.

Vim mode uses hjkl for navigation by default. Search-to-match can be activated with / and deactivated with esc. When search-to-match is active esc to quit is disabled and an indicator appears in the view.

This PR is based on https://github.com/antonmedv/llama/pull/8, however I'm implementing this separately because of the addition of the keymap (from Bubbles), which I believe simplifies the code.

Closes #2.

meowgorithm commented 1 year ago

Note: found and fixed a few small edge cases and this should now be ready to go. Totally open to feedback as well.

antonmedv commented 1 year ago

Awesome 👏🏻

antonmedv commented 1 year ago

Just thought, what about making vim mode the default?

meowgorithm commented 1 year ago

@antonmedv Yep, totally into that.

portothree commented 1 year ago

This is awesome! Can we have a new release tag for this? Looking to test this change with Nix on nixpkgs and it relies on releases to bump the version.

https://search.nixos.org/packages?channel=22.05&show=llama&from=0&size=50&sort=relevance&type=packages&query=llama