feat(api): Add new node selection action based on tab :drop command (#2161)

Co-authored-by: gegoune <dev@clog.rocks>
This commit is contained in:
hinell
2023-04-23 02:41:21 +03:00
committed by GitHub
parent 967865cdb7
commit d68b00a63e
3 changed files with 21 additions and 0 deletions

View File

@@ -1546,6 +1546,15 @@ node.open.horizontal() *nvim-tree-api.node.open.horizontal()*
node.open.tab() *nvim-tree-api.node.open.tab()*
|nvim-tree-api.node.edit()|, file will be opened in a new tab.
*nvim-tree-api.node.open.tab_drop()*
node.open.tab_drop()
Switch to tab containing window with selected file if it exists.
Open file in new tab otherwise.
File: open file using `tab :drop`
Folder: expand or collapse
Root: change directory up
node.open.preview() *nvim-tree-api.node.open.preview()*
|nvim-tree-api.node.edit()|, file buffer will have |bufhidden| set to `delete`.