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
Copy file name to clipboardExpand all lines: doc/nvim-tree-lua.txt
+68-47
Original file line number
Diff line number
Diff line change
@@ -296,7 +296,7 @@ Subsequent calls to setup will replace the previous configuration.
296
296
debounce_delay = 50,
297
297
severity = {
298
298
min = vim.diagnostic.severity.HINT,
299
-
max = vim.diagnostic.severity.ERROR
299
+
max = vim.diagnostic.severity.ERROR,
300
300
},
301
301
icons = {
302
302
hint = "",
@@ -307,6 +307,8 @@ Subsequent calls to setup will replace the previous configuration.
307
307
},
308
308
filters = {
309
309
dotfiles = false,
310
+
git_clean = false,
311
+
no_buffer = false,
310
312
custom = {},
311
313
exclude = {},
312
314
},
@@ -903,6 +905,19 @@ Filtering options.
903
905
Toggle via the `toggle_dotfiles` action, default mapping `H`.
904
906
Type: `boolean`, Default: `false`
905
907
908
+
*nvim-tree.filters.git_clean*
909
+
Do not show files with no git status. This will show ignored files when
910
+
|nvim-tree.git.ignore| is set, as they are effectively dirty.
911
+
Toggle via the `toggle_git_clean` action, default mapping `C`.
912
+
Type: `boolean`, Default: `false`
913
+
914
+
*nvim-tree.filters.no_buffer*
915
+
Do not show files that have no listed buffer.
916
+
Toggle via the `toggle_no_buffer` action, default mapping `B`.
917
+
For performance reasons this may not immediately update on buffer
918
+
delete/wipe. A reload or filesystem event will result in an update.
919
+
Type: `boolean`, Default: `false`
920
+
906
921
*nvim-tree.filters.custom*
907
922
Custom list of vim regex for file/directory names that will not be shown.
908
923
Backslashes must be escaped e.g. "^\\.git". See |string-match|.
@@ -1188,6 +1203,8 @@ exists.
1188
1203
- collapse_all `(keep_buffers?: bool)`
1189
1204
- expand_all
1190
1205
- toggle_gitignore_filter
1206
+
- toggle_git_clean_filter
1207
+
- toggle_no_buffer_filter
1191
1208
- toggle_custom_filter
1192
1209
- toggle_hidden_filter
1193
1210
- toggle_help
@@ -1302,55 +1319,57 @@ Single right / middle mouse mappings will requre changes to |mousemodel| or |mou
1302
1319
1303
1320
DEFAULT MAPPINGS *nvim-tree-default-mappings*
1304
1321
1305
-
`<CR>` edit open a file or folder; root will cd to the above directory
1322
+
`<CR>` edit open a file or folder; root will cd to the above directory
1306
1323
`o`
1307
1324
`<2-LeftMouse>`
1308
-
`<C-e>` edit_in_place edit the file in place, effectively replacing the tree explorer
1309
-
`O` edit_no_picker same as (edit) with no window picker
1310
-
`<C-]>` cd cd in the directory under the cursor
1325
+
`<C-e>` edit_in_place edit the file in place, effectively replacing the tree explorer
1326
+
`O` edit_no_picker same as (edit) with no window picker
1327
+
`<C-]>` cd cd in the directory under the cursor
1311
1328
`<2-RightMouse>`
1312
-
`<C-v>` vsplit open the file in a vertical split
1313
-
`<C-x>` split open the file in a horizontal split
1314
-
`<C-t>` tabnew open the file in a new tab
1315
-
`<` prev_sibling navigate to the previous sibling of current file/directory
1316
-
`>` next_sibling navigate to the next sibling of current file/directory
1317
-
`P` parent_node move cursor to the parent directory
1318
-
`<BS>` close_node close current opened directory or parent
1319
-
`<Tab>` preview open the file as a preview (keeps the cursor in the tree)
1320
-
`K` first_sibling navigate to the first sibling of current file/directory
1321
-
`J` last_sibling navigate to the last sibling of current file/directory
1322
-
`I` toggle_git_ignored toggle visibility of files/folders hidden via |git.ignore| option
1323
-
`H` toggle_dotfiles toggle visibility of dotfiles via |filters.dotfiles| option
1324
-
`U` toggle_custom toggle visibility of files/folders hidden via |filters.custom| option
1325
-
`R` refresh refresh the tree
1326
-
`a` create add a file; leaving a trailing `/` will add a directory
1327
-
`d` remove delete a file (will prompt for confirmation)
1328
-
`D` trash trash a file via |trash| option
1329
-
`r` rename rename a file
1330
-
`<C-r>` full_rename rename a file and omit the filename on input
1331
-
`x` cut add/remove file/directory to cut clipboard
1332
-
`c` copy add/remove file/directory to copy clipboard
1333
-
`p` paste paste from clipboard; cut clipboard has precedence over copy; will prompt for confirmation
1334
-
`y` copy_name copy name to system clipboard
1335
-
`Y` copy_path copy relative path to system clipboard
1336
-
`gy` copy_absolute_path copy absolute path to system clipboard
1337
-
`[e` prev_diag_item go to next diagnostic item
1338
-
`[c` prev_git_item go to next git item
1339
-
`]e` next_diag_item go to prev diagnostic item
1340
-
`]c` next_git_item go to prev git item
1341
-
`-` dir_up navigate up to the parent directory of the current file/directory
1342
-
`s` system_open open a file with default system application or a folder with default file manager, using |system_open| option
1343
-
`f` live_filter live filter nodes dynamically based on regex matching.
1344
-
`F` clear_live_filter clear live filter
1345
-
`q` close close tree window
1346
-
`W` collapse_all collapse the whole tree
1347
-
`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
1348
-
`S` search_node prompt the user to enter a path and then expands the tree to match the path
1349
-
`.` run_file_command enter vim command mode with the file the cursor is on
1350
-
`<C-k>` toggle_file_info toggle a popup with file infos about the file under the cursor
1351
-
`g?` toggle_help toggle help
1352
-
`m` toggle_mark Toggle node in bookmarks
1353
-
`bmv` bulk_move Move all bookmarked nodes into specified location
1329
+
`<C-v>` vsplit open the file in a vertical split
1330
+
`<C-x>` split open the file in a horizontal split
1331
+
`<C-t>` tabnew open the file in a new tab
1332
+
`<` prev_sibling navigate to the previous sibling of current file/directory
1333
+
`>` next_sibling navigate to the next sibling of current file/directory
1334
+
`P` parent_node move cursor to the parent directory
1335
+
`<BS>` close_node close current opened directory or parent
1336
+
`<Tab>` preview open the file as a preview (keeps the cursor in the tree)
1337
+
`K` first_sibling navigate to the first sibling of current file/directory
1338
+
`J` last_sibling navigate to the last sibling of current file/directory
1339
+
`C` toggle_git_clean toggle visibility of git clean via |filters.git_clean| option
1340
+
`I` toggle_git_ignored toggle visibility of files/folders hidden via |git.ignore| option
1341
+
`H` toggle_dotfiles toggle visibility of dotfiles via |filters.dotfiles| option
1342
+
`B` toggle_no_buffer toggle visibility of files/folders hidden via |filters.no_buffer| option
1343
+
`U` toggle_custom toggle visibility of files/folders hidden via |filters.custom| option
1344
+
`R` refresh refresh the tree
1345
+
`a` create add a file; leaving a trailing `/` will add a directory
1346
+
`d` remove delete a file (will prompt for confirmation)
1347
+
`D` trash trash a file via |trash| option
1348
+
`r` rename rename a file
1349
+
`<C-r>` full_rename rename a file and omit the filename on input
1350
+
`x` cut add/remove file/directory to cut clipboard
1351
+
`c` copy add/remove file/directory to copy clipboard
1352
+
`p` paste paste from clipboard; cut clipboard has precedence over copy; will prompt for confirmation
1353
+
`y` copy_name copy name to system clipboard
1354
+
`Y` copy_path copy relative path to system clipboard
1355
+
`gy` copy_absolute_path copy absolute path to system clipboard
1356
+
`[e` prev_diag_item go to next diagnostic item
1357
+
`[c` prev_git_item go to next git item
1358
+
`]e` next_diag_item go to prev diagnostic item
1359
+
`]c` next_git_item go to prev git item
1360
+
`-` dir_up navigate up to the parent directory of the current file/directory
1361
+
`s` system_open open a file with default system application or a folder with default file manager, using |system_open| option
1362
+
`f` live_filter live filter nodes dynamically based on regex matching.
1363
+
`F` clear_live_filter clear live filter
1364
+
`q` close close tree window
1365
+
`W` collapse_all collapse the whole tree
1366
+
`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
1367
+
`S` search_node prompt the user to enter a path and then expands the tree to match the path
1368
+
`.` run_file_command enter vim command mode with the file the cursor is on
1369
+
`<C-k>` toggle_file_info toggle a popup with file infos about the file under the cursor
1370
+
`g?` toggle_help toggle help
1371
+
`m` toggle_mark Toggle node in bookmarks
1372
+
`bmv` bulk_move Move all bookmarked nodes into specified location
0 commit comments