Skip to content

Commit 04840f4

Browse files
committed
chore: some api will support visual mode
nvim-tree/nvim-tree.lua#3268
1 parent 93eb52d commit 04840f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lua/plugin/nvim_tree.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ return {
3131
{ 'n', '<c-]>', h.change_root_to_node, opts('CD') },
3232
{ 'n', '<c-o>', h.change_root_to_parent, opts('Up') },
3333
{ 'n', 'K', a.node.show_info_popup, opts('Info') },
34-
{ { 'n', 'x' }, '<del>', h.remove, opts('Remove') },
35-
{ { 'n', 'x' }, 'd', h.remove, opts('Delete') },
34+
{ { 'n', 'x' }, 'y', a.fs.copy.node, opts('Copy') },
35+
{ { 'n', 'x' }, 'd', a.fs.remove, opts('Remove') },
36+
{ { 'n', 'x' }, 'x', a.fs.cut, opts('Cut') },
37+
{ { 'n', 'x' }, 'm', a.marks.toggle, opts('Toggle Bookmark') },
3638
{ { 'n', 'x' }, 'c', h.copy_to, opts('Copy to') },
3739
{ { 'n', 'x' }, 'R', h.rename_full, opts('Rename Full Path or Move') },
38-
{ { 'n', 'x' }, 'x', h.cut, opts('Cut') },
39-
{ { 'n', 'x' }, 'm', h.toggle_mark, opts('Toggle Bookmark') },
4040
{ 'n', 'bd', a.marks.bulk.delete, opts('Delete Bookmarked') },
4141
{ 'n', 'bm', a.marks.bulk.move, opts('Move Bookmarked') },
4242
{ 'n', 'M', a.filter.no_bookmark.toggle, opts('Toggle Filter: No Bookmark') },

0 commit comments

Comments
 (0)