antonmedv / walk

Terminal file manager
MIT License
3.25k stars 89 forks source link

add `i` to enter and `o` to exit dir #128

Closed ericd23 closed 3 months ago

ericd23 commented 7 months ago

While navigating directories using the hjkl, Enter and Backspace is relatively distant. I added alternative keybindings: i for entering a directory ("in") and o for exiting a directory ("out"), which are closer to the hjkl and easy to remember.

antonmedv commented 7 months ago

Nice idea. What i & o used in vim and emacs usually for?

ericd23 commented 7 months ago

In Vim, i is for entering "insert" mode. o creates an empty line under cursor and enters "insert" mode. In Emacs, i and o insert the actual letters.

I was also thinking something like n (next) for entering and p (previous) for exiting, which is also quite ergonomic.

tuzu128 commented 7 months ago

I would change it from i and o to h and l.

antonmedv commented 3 months ago

Let's discuss issues first.