vim-vinegar icon indicating copy to clipboard operation
vim-vinegar copied to clipboard

Retain file highlight whilst bouncing up to parent directory

Open giddie opened this issue 7 years ago • 4 comments

It would be awesome if the file in the current buffer could remain highlighted as we bounce higher up the tree, to provide a clearer context of the file's location within the tree.

giddie avatar Mar 23 '18 16:03 giddie

Maybe not possible, but the ideal would probably be if the whole project tree opened up with the file selected, much like NERDTreeFind does, but in the current buffer (obviously), and without the persistent state that you get with the sidebar.

giddie avatar Mar 23 '18 16:03 giddie

Well right now the cursor is positioned on the current file.

dhruvasagar avatar Mar 23 '18 16:03 dhruvasagar

It is when you hit - for the first time, but not on subsequent presses. On the second press, I'm in the parent directory, and the directory I just travelled up from is highlighted, but because it's collapsed I can't see the file. Or is there some configuration option I'm missing?

giddie avatar Mar 26 '18 08:03 giddie

...and somehow over a year later I came looking for a solution to this again, having completely forgotten I opened this issue :p

The issue now appears to be the opposite: the first time I press -, the cursor is at the top of the file listing, on top of Press ? for help. Subsequent presses highlight the directory I just came from.

giddie avatar Nov 01 '19 09:11 giddie