nvim-tree.lua icon indicating copy to clipboard operation
nvim-tree.lua copied to clipboard

[find file] when the file is not found, focus the potential parent folder

Open vanarok opened this issue 3 years ago • 3 comments

At the moment it does not focus on the last visible directory if the file is out of sight(hidden). 2022-06-12T12:39:58,235209814+04:00 The gray files are hidden when nvim tree starts and in this case it should focus on the "config" folder.

vanarok avatar Jun 12 '22 08:06 vanarok

hi, please elaborate, i don't understand you feature request. -> current behavior for event/action -> behavior wanted for event/action

kyazdani42 avatar Jun 12 '22 10:06 kyazdani42

Current behavior. When the nvim tree is opened, the cursor will not focus on a file in the nvim tree tab if the file is hidden. Behaviour wanted. When the nvim tree is opened, and the file is not visible in the nvim tree, the cursor should focus on the file's parent directory.

vanarok avatar Jun 12 '22 12:06 vanarok

I see now, this could be implemented in the find_file, i'll see when i have some time for this.

kyazdani42 avatar Jun 12 '22 13:06 kyazdani42

This is a valid feature that improves the quality of life for users.

alex-courtis avatar Nov 13 '22 21:11 alex-courtis

This should be resolved via https://github.com/nvim-tree/nvim-tree.lua/issues/1785 and https://github.com/nvim-tree/nvim-tree.lua/pull/2261

Please reopen if this hasn't been resolved.

alex-courtis avatar Jun 18 '23 02:06 alex-courtis