mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
Add an :EditBookmarks command to edit the bookmarks file (#954)
* Add a new NERDTree buffer command to edit the bookmarks file. * Update the mini-help panel with missing bookmark commands. * Update the help file with the new :EditBookmarks command.
This commit is contained in:
@@ -206,6 +206,10 @@ Note: The following commands are only available within the NERDTree buffer.
|
||||
:ClearAllBookmarks
|
||||
Remove all bookmarks.
|
||||
|
||||
:EditBookmarks
|
||||
Opens the bookmarks file for manual editing, e.g. for removing invalid
|
||||
bookmarks.
|
||||
|
||||
:ReadBookmarks
|
||||
Re-read the bookmarks in the |NERDTreeBookmarksFile|.
|
||||
|
||||
@@ -218,13 +222,14 @@ If invalid bookmarks are detected, the script will issue an error message and
|
||||
the invalid bookmarks will become unavailable for use.
|
||||
|
||||
These bookmarks will still be stored in the bookmarks file (see
|
||||
|NERDTreeBookmarksFile|), down the bottom. There will always be a blank line
|
||||
|NERDTreeBookmarksFile|), down at the bottom. There will always be a blank line
|
||||
after the valid bookmarks but before the invalid ones.
|
||||
|
||||
Each line in the bookmarks file represents one bookmark. The proper format is:
|
||||
<bookmark name><space><full path to the bookmark location>
|
||||
|
||||
After you have corrected any invalid bookmarks, either restart vim, or go
|
||||
You can use the :EditBookmarks command to open the bookmarks file for editing.
|
||||
After you have corrected any invalid bookmarks, either restart vim, or run
|
||||
:ReadBookmarks from the NERD tree window.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user