zee-editor / zee

A modern text editor for the terminal written in Rust
Apache License 2.0
1.47k stars 42 forks source link

Feature request: Improved navigation in file selector pop-up #26

Open martintc opened 2 years ago

martintc commented 2 years ago

One nice feature from helm that I like when navigating files after ~C-x-C-F~ is the ability to use the up and down arrow keys to select a file and right right and left arrow keys to navigate in and out of folder structure.

If I can, I will look into implementing this feature. No promises it will be fast though as I am rather new at Rust.

mcobzarenco commented 2 years ago

Thank you for checking out zee and for creating the issue!

I never knew that's the case! For what is worth C-l and Enter do the same thing, i.e. navigate in and out the directory structure. I do want to match as many of the Emacs key bindings I can so would like to implement the change. However, currently left / right move the cursor in the prompt, which is locally bound in the text input component, so one may have to do a tiny bit of refactoring to get this to work.