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

fix: change dir with explorer nodes unchanged

Open linepi opened this issue 1 year ago • 2 comments

Situation

Every time I change the path in the explorer, the expanded folders in a certain directory will be reset. It's annoyning. Here are some demonstration GIF images.

api: api.tree.change_root_to_parent From path ~/tmp/t to ~/tmp

api: api.tree.change_root_to_node Enter folder ~/tmp/t

Object

Change dir with explorer nodes unchanged.

linepi avatar Jul 24 '24 12:07 linepi

As this is a change in default behaviour, this should be an experiment as per #2819

I have now created an option for this action, and I believe this will not affect the default behavior, and thus will not impact existing users.

linepi avatar Jul 27 '24 11:07 linepi

As this is a change in default behaviour, this should be an experiment as per #2819

I have now created an option for this action, and I believe this will not affect the default behavior, and thus will not impact existing users.

We don't need an option; you've identified and fixed a bug and the new behaviour is correct.

We just have to be careful as this is core functionality.

alex-courtis avatar Jul 28 '24 05:07 alex-courtis

Closing as this PR is stale. Please reopen if you wish to continue this work.

alex-courtis avatar Jan 27 '25 00:01 alex-courtis