nvim-tree.lua
nvim-tree.lua copied to clipboard
Partial Collapse
#2112
~~Method to recursively collapse a partial tree up to the root level folder.~~
~~As per collapse_all
but within one sub-tree.~~
Recursively collapse a node. As per open.edit
on an open node however also recursively collapses contents.
I'm leaning towards collapse
with the same param as collapse_all
.
... collapse a partial tree up to the root level folder
I want to make sure that we talked about the same behavior.
When I have this start condition:
If the cursor is on folder b/
or on file b/demo
it should collapse any directory below b/
including b/
itself:
It could be an option (e.g. collapse({parents = true})
) to also collapse all parents up to the root instead:
If the cursor is on folder
b/
or on fileb/demo
it should collapse any directory belowb/
includingb/
itself:
I see... that is the minimum required functionality. Updating description.
It could be an option (e.g. collapse({parents = true})) to also collapse all parents up to the root instead:
YAGNI. We can add it later if necessary.
looking forward to it(