Skip to content

Commit 35e12a1

Browse files
committed
chore: add doc
1 parent d0063d5 commit 35e12a1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ require'nvim-tree'.setup { -- BEGIN_DEFAULT_OPTS
261261
- Double left click acts like `<CR>`
262262
- Double right click acts like `<C-]>`
263263
- `W` will collapse the whole tree
264+
- `E` will expand the whole tree. Be aware this might hang neovim for a while if running on a big folder (such as home dir or root dir).
264265
- `S` will prompt the user to enter a path and then expands the tree to match the path
265266
- `.` will enter vim command mode with the file the cursor is on
266267
- `C-k` will toggle a popup with file infos about the file under the cursor
@@ -331,6 +332,7 @@ local list = {
331332
{ key = "q", action = "close" },
332333
{ key = "g?", action = "toggle_help" },
333334
{ key = "W", action = "collapse_all" },
335+
{ key = "E", action = "expand_all" },
334336
{ key = "S", action = "search_node" },
335337
{ key = "<C-k>", action = "toggle_file_info" },
336338
{ key = ".", action = "run_file_command" }

doc/nvim-tree-lua.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,8 @@ INFORMATIONS *nvim-tree-info*
762762
- Double left click acts like <CR>
763763
- Double right click acts like <C-]>
764764
- `W` will collapse the whole tree
765+
- `E` will expand the whole tree. Be aware this might hang neovim for a while
766+
if running on a big folder (such as home dir or root dir).
765767
- `S` will prompt the user to enter a path and then expands the tree to match the path
766768
- `.` will enter vim command mode with the file the cursor is on
767769
- `C-k` will toggle a popup with file infos about the file under the cursor
@@ -807,6 +809,7 @@ Defaults to:
807809
{ key = "q", action = "close" },
808810
{ key = "g?", action = "toggle_help" },
809811
{ key = 'W', action = "collapse_all" },
812+
{ key = 'E', action = "expand_all" },
810813
{ key = "S", action = "search_node" },
811814
{ key = ".", action = "run_file_command" },
812815
{ key = "<C-k>", action = "toggle_file_info" }

0 commit comments

Comments
 (0)