kyoheiu / felix

tui file manager with vim-like key mapping
https://kyoheiu.dev/felix/
MIT License
692 stars 24 forks source link

Backspace to go to the parent directory? #253

Open kyoheiu opened 8 months ago

kyoheiu commented 8 months ago

At this moment Backspace toggles whether to show hidden files/directories, but it might be more intuitive to use the key to go to the parent directory, in addtion to h and Left. In this case I wonder which key should be used to hide/show hidden items.

BrookJeynes commented 8 months ago

@kyoheiu I can't speak for others but I personally think the full stop key "." would be a good suit?

kyoheiu commented 7 months ago

Thanks for your input! That makes sense. But . is too strong in the Vim context, so I think it should be reserved for the future use.

BrookJeynes commented 7 months ago

Thanks for your input! That makes sense. But . is too strong in the Vim context, so I think it should be reserved for the future use.

Oh true! Completely forgot . repeats your last action... You could possibly do a combination of keys? ctrl + h or something similar? That way you make it explicit that this is not a natural vim bind?

0x6b commented 7 months ago

@kyoheiu Just my thoughts.

  1. gh would be natural combo to hide/show hidden items as an old-school netrw user. Supporting multi-key shortcut might be a tedious (or serious?) task, though. From :help netrw-hide:
    As a quick shortcut, one may press 
        gh
    to toggle between hiding files which begin with a period (dot) and not hiding them.
  2. Another in my mind is Shift-Command-., as a macOS (Finder.app) user.

I also hope that I can define my own keymaps (including the one for toggling hidden items.)