blob: 2d156f9071a8b3ed0dd6d0779ad5ab9ae693f9da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#### DEFAULT MAPPINGS *nvim-tree-default-mappings*
Mapping | Command | Description
---|---|---
`<CR>` | edit | open a file or folder; root will cd to the above directory
`o`
`<2-LeftMouse>`
`<C-e>` | edit_in_place | edit the file in place, effectively replacing the tree explorer
`O` | edit_no_picker | same as (edit) with no window picker
`<C-]>` | cd | cd in the directory under the cursor
`<2-RightMouse>` |
`<C-v>` | vsplit | open the file in a vertical split
`<C-x>` | split | open the file in a horizontal split
`<C-t>` | tabnew | open the file in a new tab
`<` | prev_sibling | navigate to the previous sibling of current file/directory
`>` | next_sibling | navigate to the next sibling of current file/directory
`P` | parent_node | move cursor to the parent directory
`<BS>` | close_node | close current opened directory or parent
`<Tab>` | preview | open the file as a preview (keeps the cursor in the tree)
`K` | first_sibling | navigate to the first sibling of current file/directory
`J` | last_sibling | navigate to the last sibling of current file/directory
`C` | toggle_git_clean | toggle visibility of git clean via |filters.git_clean| option
`I` | toggle_git_ignored | toggle visibility of files/folders hidden via |git.ignore| option
`H` | toggle_dotfiles | toggle visibility of dotfiles via |filters.dotfiles| option
`B` | toggle_no_buffer | toggle visibility of files/folders hidden via |filters.no_buffer| option
`U` | toggle_custom | toggle visibility of files/folders hidden via |filters.custom| option
`R` | refresh | refresh the tree
`a` | create | add a file; leaving a trailing `/` will add a directory
`d` | remove | delete a file (will prompt for confirmation)
`D` | trash | trash a file via |trash| option
`r` | rename | rename a file
`<C-r>` | full_rename | rename a file and omit the filename on input
`e` | rename_basename | rename a file with filename-modifiers ':t:r' without changing extension
`x` | cut | add/remove file/directory to cut clipboard
`c` | copy | add/remove file/directory to copy clipboard
`p` | paste | paste from clipboard; cut clipboard has precedence over copy; will prompt for confirmation
`y` | copy_name | copy name to system clipboard
`Y` | copy_path | copy relative path to system clipboard
`gy` | copy_absolute_path | copy absolute path to system clipboard
`[e` | prev_diag_item | go to next diagnostic item
`[c` | prev_git_item | go to next git item
`]e` | next_diag_item | go to prev diagnostic item
`]c` | next_git_item | go to prev git item
`-` | dir_up | navigate up to the parent directory of the current file/directory
`s` | system_open | open a file with default system application or a folder with default file manager, using |system_open| option
`f` | live_filter | live filter nodes dynamically based on regex matching.
`F` | clear_live_filter | clear live filter
`q` | close | close tree window
`W` | collapse_all | collapse the whole tree
`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
`S` | search_node | prompt the user to enter a path and then expands the tree to match the path
`.` | run_file_command | enter vim command mode with the file the cursor is on
`<C-k>` | toggle_file_info | toggle a popup with file infos about the file under the cursor
`g?` | toggle_help | toggle help
`m` | toggle_mark | Toggle node in bookmarks
`bmv` | bulk_move | Move all bookmarked nodes into specified location
|