@@ -14,6 +14,7 @@ CONTENTS *nvim-tree*
1414 6. Highlight Groups | nvim-tree-highlight |
1515 7. Events | nvim-tree-events |
1616 7.1 Available Events | nvim-tree.events |
17+ 8. Bookmarks | nvim-tree-bookmarks |
1718
1819==============================================================================
1920 1. INTRODUCTION *nvim-tree-introduction*
@@ -220,6 +221,7 @@ Subsequent calls to setup will replace the previous configuration.
220221 glyphs = {
221222 default = "",
222223 symlink = "",
224+ bookmark = "",
223225 folder = {
224226 arrow_closed = "",
225227 arrow_open = "",
@@ -1012,6 +1014,7 @@ DEFAULT MAPPINGS *nvim-tree-default-mappings
10121014`.` run_file_command enter vim command mode with the file the cursor is on
10131015`<C-k> ` toggle_file_info toggle a popup with file infos about the file under the cursor
10141016`g ?` toggle_help toggle help
1017+ `m ` toggle_mark Toggle node in bookmarks
10151018
10161019>
10171020 view.mappings.list = { -- BEGIN_DEFAULT_MAPPINGS
@@ -1059,6 +1062,7 @@ DEFAULT MAPPINGS *nvim-tree-default-mappings
10591062 { key = ".", action = "run_file_command" }
10601063 { key = "<C-k>", action = "toggle_file_info" }
10611064 { key = "g?", action = "toggle_help" }
1065+ { key = "m", action = "toggle_mark" }
10621066 } -- END_DEFAULT_MAPPINGS
10631067<
10641068==============================================================================
@@ -1130,6 +1134,11 @@ There are 2 highlight groups for the live filter feature
11301134NvimTreeLiveFilterPrefix
11311135NvimTreeLiveFilterValue
11321136
1137+ Color of the bookmark icon
1138+
1139+ NvimTreeBookmark
1140+
1141+
11331142==============================================================================
11341143 7. EVENTS *nvim-tree-events*
11351144
@@ -1245,4 +1254,14 @@ on_tree_resize({handler})
12451254 {handler} `{function }` Handler function, with the
12461255 signature `function (size)` .
12471256
1257+ ==============================================================================
1258+ 8. BOOKMARKS *nvim-tree-bookmarks*
1259+
1260+ You can toggle marks on files/folders with
1261+ `require (" nvim-tree.marks" ).toggle_mark (node)` which is bound to `m ` by
1262+ default.
1263+
1264+ To get the list of marked paths, you can call
1265+ `require (" nvim-tree.marks" ).get_marks ()` . This will return `{string }` .
1266+
12481267 vim:tw=78:ts=4:sw=4:et:ft=help:norl:
0 commit comments