Preview bookmarks (#956)

* Add function to preview bookmarks.

File bookmarks are previewed like regular file nodes.
Directory bookmarks are located with NERDTreeFind in the current tree.

* Update help doc to include the new bookmark preview functionality.
This commit is contained in:
Phil Runninger
2019-02-22 08:21:20 -05:00
committed by GitHub
parent 9eda9ce6a1
commit b6cde142dd
3 changed files with 20 additions and 3 deletions

View File

@@ -240,6 +240,7 @@ Key Description help-tag~
o........Open files, directories and bookmarks......................|NERDTree-o|
go.......Open selected file, but leave cursor in the NERDTree......|NERDTree-go|
Open selected bookmark dir in current NERDTree
t........Open selected node/bookmark in a new tab...................|NERDTree-t|
T........Same as 't' but keep the focus on the current tab..........|NERDTree-T|
i........Open selected file in a split window.......................|NERDTree-i|
@@ -305,8 +306,12 @@ Default key: go
Map setting: NERDTreeMapPreview
Applies to: files.
If a file node is selected, it is opened in the previous window, but the
cursor does not move.
If a file node or a bookmark that links to a file is selected, it is opened in
the previous window, but the cursor does not move.
If a bookmark that links to a directory is selected, that directory is found
in the current NERDTree. If the directory couldn't be found, a new NERDTree is
created.
The default key combo for this mapping is "g" + NERDTreeMapActivateNode (see
|NERDTree-o|).