felix icon indicating copy to clipboard operation
felix copied to clipboard

Backspace to go to the parent directory?

Open kyoheiu opened this issue 9 months ago • 4 comments

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.

kyoheiu avatar Nov 17 '23 06:11 kyoheiu

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

BrookJeynes avatar Nov 20 '23 07:11 BrookJeynes

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.

kyoheiu avatar Nov 24 '23 20:11 kyoheiu

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?

BrookJeynes avatar Nov 24 '23 22:11 BrookJeynes

@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.)

0x6b avatar Dec 04 '23 12:12 0x6b