Skip to content

Commit a044818

Browse files
committed
fix(api): copy is a table, copy -> copy.name
fixes #1461
1 parent 86b9da5 commit a044818

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/nvim-tree-lua.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,10 +992,10 @@ exists.
992992
- trash
993993
- rename
994994
- rename_sub
995-
- copy
996995
- cut
997996
- paste
998997
- print_clipboard
998+
- copy.name
999999
- copy.absolute_path
10001000
- copy.filename
10011001
- copy.relative_path

lua/nvim-tree/api.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ Api.fs.remove = inject_node(require("nvim-tree.actions.fs.remove-file").fn)
3737
Api.fs.trash = inject_node(require("nvim-tree.actions.fs.trash").fn)
3838
Api.fs.rename = inject_node(require("nvim-tree.actions.fs.rename-file").fn(false))
3939
Api.fs.rename_sub = inject_node(require("nvim-tree.actions.fs.rename-file").fn(true))
40-
Api.fs.copy = inject_node(require("nvim-tree.actions.fs.copy-paste").copy)
4140
Api.fs.cut = inject_node(require("nvim-tree.actions.fs.copy-paste").cut)
4241
Api.fs.paste = inject_node(require("nvim-tree.actions.fs.copy-paste").paste)
4342
Api.fs.print_clipboard = require("nvim-tree.actions.fs.copy-paste").print_clipboard
43+
Api.fs.copy.name = inject_node(require("nvim-tree.actions.fs.copy-paste").copy)
4444
Api.fs.copy.absolute_path = inject_node(require("nvim-tree.actions.fs.copy-paste").copy_absolute_path)
4545
Api.fs.copy.filename = inject_node(require("nvim-tree.actions.fs.copy-paste").copy_filename)
4646
Api.fs.copy.relative_path = inject_node(require("nvim-tree.actions.fs.copy-paste").copy_path)

0 commit comments

Comments
 (0)