chore: add fs.move api and update docs

This commit is contained in:
uanela
2026-06-25 10:14:16 +02:00
parent 1b6737155a
commit 4fcbafea04
2 changed files with 28 additions and 3 deletions

View File

@@ -20,7 +20,8 @@ Features
- Git integration
- Diagnostics integration: LSP and COC
- (Live) filtering
- Cut, copy, paste, rename, delete, create
- Rename, delete, create
- Cut, copy, paste locally and between instances
- Highly customisable
File Icons
@@ -2462,7 +2463,19 @@ cut({node}) *nvim_tree.api.fs.cut()*
• {node} (`nvim_tree.api.Node?`)
paste({node}) *nvim_tree.api.fs.paste()*
Paste from the nvim-tree clipboard.
Paste while cutting files from:
• current nvim-tree clipboard (if present)
• another nvim-tree instance via system clipboard
If {node} is a file it will pasted in the parent directory.
Parameters: ~
• {node} (`nvim_tree.api.Node?`)
paste({node}) *nvim_tree.api.fs.paste()*
Paste files from:
• current nvim-tree clipboard (if present)
• another nvim-tree instance via system clipboard
If {node} is a file it will pasted in the parent directory.

View File

@@ -59,7 +59,19 @@ function nvim_tree.api.fs.create(node) end
function nvim_tree.api.fs.cut(node) end
---
---Paste from the nvim-tree clipboard.
---Paste files from:
---- current nvim-tree clipboard (if present)
---- another nvim-tree instance via system clipboard
---
---If {node} is a file it will pasted in the parent directory.
---
---@param node? nvim_tree.api.Node
function nvim_tree.api.fs.paste(node) end
---
---Paste while cutting files from:
---- current nvim-tree clipboard (if present)
---- another nvim-tree instance via system clipboard
---
---If {node} is a file it will pasted in the parent directory.
---