doc: collapse_all
This commit is contained in:
parent
a731a81728
commit
d243da3e14
@ -337,20 +337,20 @@ See |nvim-tree-highlight| for details.
|
|||||||
|
|
||||||
*:NvimTreeCollapse*
|
*:NvimTreeCollapse*
|
||||||
|
|
||||||
Collapses the nvim-tree recursively.
|
Collapses the entire tree recursively.
|
||||||
|
|
||||||
See |nvim-tree-api.tree.collapse_all()|
|
See |nvim-tree-api.tree.collapse_all()|
|
||||||
|
|
||||||
Calls: `api.tree.collapse_all(false)`
|
Calls: `api.tree.collapse_all(nil, { keep_buffers = false })`
|
||||||
|
|
||||||
*:NvimTreeCollapseKeepBuffers*
|
*:NvimTreeCollapseKeepBuffers*
|
||||||
|
|
||||||
Collapses the nvim-tree recursively, but keep the directories open, which are
|
Collapses the entire tree recursively, but keep the directories open, which
|
||||||
used in an open buffer.
|
are used in an open buffer.
|
||||||
|
|
||||||
See |nvim-tree-api.tree.collapse_all()|
|
See |nvim-tree-api.tree.collapse_all()|
|
||||||
|
|
||||||
Calls: `api.tree.collapse_all(true)`
|
Calls: `api.tree.collapse_all(nil, { keep_buffers = true })`
|
||||||
|
|
||||||
*:NvimTreeHiTest*
|
*:NvimTreeHiTest*
|
||||||
|
|
||||||
@ -1829,11 +1829,15 @@ tree.find_file({opts}) *nvim-tree-api.tree.find_file()*
|
|||||||
tree.search_node() *nvim-tree-api.tree.search_node()*
|
tree.search_node() *nvim-tree-api.tree.search_node()*
|
||||||
Open the search dialogue as per the search_node action.
|
Open the search dialogue as per the search_node action.
|
||||||
|
|
||||||
tree.collapse_all({keep_buffers}) *nvim-tree-api.tree.collapse_all()*
|
tree.collapse_all({node}, {opts}) *nvim-tree-api.tree.collapse_all()*
|
||||||
Collapse the tree.
|
Collapses the tree recursively.
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
• {keep_buffers} (boolean) do not collapse nodes with open buffers.
|
• {node} (Node|nil) collapse only children of this directory
|
||||||
|
• {opts} (table) optional parameters
|
||||||
|
|
||||||
|
Options: ~
|
||||||
|
• {keep_buffers} (boolean?) do not collapse nodes with open buffers, default false
|
||||||
|
|
||||||
tree.expand_all({node}) *nvim-tree-api.tree.expand_all()*
|
tree.expand_all({node}) *nvim-tree-api.tree.expand_all()*
|
||||||
Recursively expand all nodes under the tree root or specified folder.
|
Recursively expand all nodes under the tree root or specified folder.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user