You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(mapping): deprecate user mappings and add on_attach
See the help doc. I think this is better than providing our custom
binding methods, idea taken from gitsigns.nvim.
Once this is complete, we could remove the whole mapping code and
simplify the actions -> dispatch configurations.
{ key = "s", cb = tree_cb("vsplit") }, --tree_cb and the cb property are deprecated
963
-
{ key = "<2-RightMouse>", action = "" }, -- will remove default cd action
964
-
}
965
-
<
966
-
Mouse support defined in |KeyBindings|
971
+
You can remove mappings with |nvim-tree.remove_keymaps|.
967
972
968
973
DEFAULT MAPPINGS *nvim-tree-default-mappings*
969
974
970
-
`<CR>` edit open a file or folder; root will cd to the above directory
971
-
`o`
972
-
`<2-LeftMouse>`
973
-
`<C-e>` edit_in_place edit the file in place, effectively replacing the tree explorer
974
-
`O` edit_no_picker same as (edit) with no window picker
975
-
`<C-]>` cd cd in the directory under the cursor
976
-
`<2-RightMouse>`
977
-
`<C-v>` vsplit open the file in a vertical split
978
-
`<C-x>` split open the file in a horizontal split
979
-
`<C-t>` tabnew open the file in a new tab
980
-
`<` prev_sibling navigate to the previous sibling of current file/directory
981
-
`>` next_sibling navigate to the next sibling of current file/directory
982
-
`P` parent_node move cursor to the parent directory
983
-
`<BS>` close_node close current opened directory or parent
984
-
`<Tab>` preview open the file as a preview (keeps the cursor in the tree)
985
-
`K` first_sibling navigate to the first sibling of current file/directory
986
-
`J` last_sibling navigate to the last sibling of current file/directory
987
-
`I` toggle_git_ignored toggle visibility of files/folders hidden via |git.ignore| option
988
-
`H` toggle_dotfiles toggle visibility of dotfiles via |filters.dotfiles| option
989
-
`U` toggle_custom toggle visibility of files/folders hidden via |filters.custom| option
990
-
`R` refresh refresh the tree
991
-
`a` create add a file; leaving a trailing `/` will add a directory
992
-
`d` remove delete a file (will prompt for confirmation)
993
-
`D` trash trash a file via |trash| option
994
-
`r` rename rename a file
995
-
`<C-r>` full_rename rename a file and omit the filename on input
996
-
`x` cut add/remove file/directory to cut clipboard
997
-
`c` copy add/remove file/directory to copy clipboard
998
-
`p` paste paste from clipboard; cut clipboard has precedence over copy; will prompt for confirmation
999
-
`y` copy_name copy name to system clipboard
1000
-
`Y` copy_path copy relative path to system clipboard
1001
-
`gy` copy_absolute_path copy absolute path to system clipboard
1002
-
`[e` prev_diag_item go to next diagnostic item
1003
-
`[c` prev_git_item go to next git item
1004
-
`]e` next_diag_item go to prev diagnostic item
1005
-
`]c` next_git_item go to prev git item
1006
-
`-` dir_up navigate up to the parent directory of the current file/directory
1007
-
`s` system_open open a file with default system application or a folder with default file manager, using |system_open| option
1008
-
`f` live_filter live filter nodes dynamically based on regex matching.
1009
-
`F` clear_live_filter clear live filter
1010
-
`q` close close tree window
1011
-
`W` collapse_all collapse the whole tree
1012
-
`E` expand_all expand the whole tree, stopping after expanding |actions.expand_all.max_folder_discovery| folders; this might hang neovim for a while if running on a big folder
1013
-
`S` search_node prompt the user to enter a path and then expands the tree to match the path
1014
-
`.` run_file_command enter vim command mode with the file the cursor is on
1015
-
`<C-k>` toggle_file_info toggle a popup with file infos about the file under the cursor
1016
-
`g?` toggle_help toggle help
1017
-
`m` toggle_mark Toggle node in bookmarks
975
+
`<CR>`, `o`, `<2-LeftMouse>` open a file or folder; root will cd to the above directory
976
+
`<C-e>` edit the file in place, effectively replacing the tree explorer
977
+
`O` same as (edit) with no window picker
978
+
`<C-]>`, `<2-RightMouse>` cd in the directory under the cursor
979
+
`<C-v>` open the file in a vertical split
980
+
`<C-x>` open the file in a horizontal split
981
+
`<C-t>` open the file in a new tab
982
+
`<` navigate to the previous sibling of current file/directory
983
+
`>` navigate to the next sibling of current file/directory
984
+
`P` move cursor to the parent directory
985
+
`<BS>` close current opened directory or parent
986
+
`<Tab>` open the file as a preview (keeps the cursor in the tree)
987
+
`K` navigate to the first sibling of current file/directory
988
+
`J` navigate to the last sibling of current file/directory
989
+
`I` toggle visibility of files/folders hidden via |git.ignore| option
990
+
`H` toggle visibility of dotfiles via |filters.dotfiles| option
991
+
`U` toggle visibility of files/folders hidden via |filters.custom| option
992
+
`R` refresh the tree
993
+
`a` add a file; leaving a trailing `/` will add a directory
994
+
`d` delete a file (will prompt for confirmation)
995
+
`D` trash a file via |trash| option
996
+
`r` rename a file
997
+
`<C-r>` rename a file and omit the filename on input
998
+
`x` add/remove file/directory to cut clipboard
999
+
`c` add/remove file/directory to copy clipboard
1000
+
`p` paste from clipboard; cut clipboard has precedence over copy; will prompt for confirmation
1001
+
`y` copy name to system clipboard
1002
+
`Y` copy relative path to system clipboard
1003
+
`gy` copy absolute path to system clipboard
1004
+
`[e` go to next diagnostic item
1005
+
`[c` go to next git item
1006
+
`]e` go to prev diagnostic item
1007
+
`]c` go to prev git item
1008
+
`-` navigate up to the parent directory of the current file/directory
1009
+
`s` open a file with default system application or a folder with default file manager, using |system_open| option
1010
+
`f` live filter nodes dynamically based on regex matching.
1011
+
`F` clear live filter
1012
+
`q` close tree window
1013
+
`W` collapse the whole tree
1014
+
`E` expand the whole tree, stopping after expanding |actions.expand_all.max_folder_discovery| folders; this might hang neovim for a while if running on a big folder
1015
+
`S` prompt the user to enter a path and then expands the tree to match the path
1016
+
`.` enter vim command mode with the file the cursor is on
1017
+
`<C-k>` toggle a popup with file infos about the file under the cursor
0 commit comments