mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
Compare commits
49 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ca4573b01 | ||
|
|
cdc005f46a | ||
|
|
19d5aaa513 | ||
|
|
83966b7563 | ||
|
|
b2b2bdfccd | ||
|
|
cf8c54689b | ||
|
|
a8cd995624 | ||
|
|
82a6064803 | ||
|
|
f8b51d01b7 | ||
|
|
3cbb73a63c | ||
|
|
d24a421efd | ||
|
|
6cf4e9a763 | ||
|
|
2e26da9666 | ||
|
|
e102abe98f | ||
|
|
4c1362aff8 | ||
|
|
1a4cf45f03 | ||
|
|
374df70218 | ||
|
|
a57b867ee6 | ||
|
|
927aebfa8b | ||
|
|
4f0a39159a | ||
|
|
76d2ecbb17 | ||
|
|
73322e88d2 | ||
|
|
0620b91efa | ||
|
|
ea4d4ff80d | ||
|
|
45c33fe0f6 | ||
|
|
fe249e20b9 | ||
|
|
e819e13a5d | ||
|
|
5c95fbda65 | ||
|
|
3e217115bc | ||
|
|
5d564fdbcf | ||
|
|
8184b964bc | ||
|
|
0daeebc0eb | ||
|
|
5939fdb140 | ||
|
|
9dd850b672 | ||
|
|
21601d9c3d | ||
|
|
332a1baedd | ||
|
|
e8aadb77b8 | ||
|
|
31c1faea32 | ||
|
|
818a53003e | ||
|
|
78419f858c | ||
|
|
b1d10a12fa | ||
|
|
f404cdd54b | ||
|
|
c463234452 | ||
|
|
b1020ad9c8 | ||
|
|
0ad0d195e5 | ||
|
|
43bf05c42e | ||
|
|
236df49362 | ||
|
|
bccd73c8f5 | ||
|
|
fd487dfa5c |
@@ -25,6 +25,7 @@ CONTENTS *NERDTree-contents*
|
||||
2.2 Bookmarks.........................|NERDTreeBookmarks|
|
||||
2.2.1 The bookmark table..........|NERDTreeBookmarkTable|
|
||||
2.2.2 Bookmark commands...........|NERDTreeBookmarkCommands|
|
||||
2.2.3 Invalid bookmarks...........|NERDTreeInvalidBookmarks|
|
||||
2.3 NERD tree mappings................|NERDTreeMappings|
|
||||
2.4 The filesystem menu...............|NERDTreeFilesysMenu|
|
||||
3.Options.................................|NERDTreeOptions|
|
||||
@@ -158,8 +159,27 @@ Note that the following commands are only available in the NERD tree buffer.
|
||||
:ClearAllBookmarks
|
||||
Remove all bookmarks.
|
||||
|
||||
:ReadBookmarks
|
||||
Re-read the bookmarks in the |NERDTreeBookmarksFile|.
|
||||
|
||||
See also |:NERDTree| and |:NERDTreeFromBookmark|.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
2.2.3. Invalid Bookmarks *NERDTreeInvalidBookmarks*
|
||||
|
||||
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
|
||||
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
|
||||
:ReadBookmarks from the NERD tree window.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
2.3. NERD tree Mappings *NERDTreeMappings*
|
||||
|
||||
@@ -182,6 +202,8 @@ double-click.......same as the |NERDTree-o| map.
|
||||
middle-click.......same as |NERDTree-tab| for files, same as
|
||||
|NERDTree-e| for dirs.
|
||||
|
||||
D.......Delete the current bookmark .............................|NERDTree-D|
|
||||
|
||||
P.......Jump to the root node....................................|NERDTree-P|
|
||||
p.......Jump to current nodes parent.............................|NERDTree-p|
|
||||
K.......Jump up inside directories at the current tree depth.....|NERDTree-K|
|
||||
@@ -240,8 +262,8 @@ Default key: t
|
||||
Map option: NERDTreeMapOpenInTab
|
||||
Applies to: files and directories.
|
||||
|
||||
Opens the selected file in a new tab. If a directory is selected, a netrw is
|
||||
opened in a new tab.
|
||||
Opens the selected file in a new tab. If a directory is selected, a fresh
|
||||
NERD Tree for that directory is opened in a new tab.
|
||||
|
||||
If a bookmark which points to a directory is selected, open a NERD tree for
|
||||
that directory in a new tab. If the bookmark points to a file, open that file
|
||||
@@ -322,6 +344,14 @@ Applies to: files and directories.
|
||||
|
||||
Opens a netrw on the selected directory, or the selected file's directory.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
*NERDTree-D*
|
||||
Default key: D
|
||||
Map option: NERDTreeMapDeleteBookmark
|
||||
Applies to: lines in the bookmarks table
|
||||
|
||||
Deletes the currently selected bookmark.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
*NERDTree-P*
|
||||
Default key: P
|
||||
@@ -648,7 +678,7 @@ account. The above nodes would then be sorted like this: >
|
||||
*NERDTreeChDirMode*
|
||||
|
||||
Values: 0, 1 or 2.
|
||||
Default: 1.
|
||||
Default: 0.
|
||||
|
||||
Use this option to tell the script when (if at all) to change the current
|
||||
working directory (CWD) for vim.
|
||||
@@ -667,11 +697,6 @@ the CWD is changed whenever the tree root is changed. For example, if the CWD
|
||||
is /home/marty/foobar and you make the node for /home/marty/foobar/baz the new
|
||||
root then the CWD will become /home/marty/foobar/baz.
|
||||
|
||||
Authors note: at work i have this option set to 1 because i have a giant ctags
|
||||
file in the root dir of my project. This way i can initialise the NERD tree
|
||||
with the root dir of my project and always have ctags available to me --- no
|
||||
matter where i go with the NERD tree.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
*NERDTreeHighlightCursorline*
|
||||
Values: 0 or 1.
|
||||
@@ -874,6 +899,34 @@ fridge for later ;)
|
||||
==============================================================================
|
||||
7. Changelog *NERDTreeChangelog*
|
||||
|
||||
2.14.0
|
||||
- fix a bug where the <c-w>o mapping would cause the tree window to be
|
||||
incorrectly sized when reopened.
|
||||
- add keymapping to delete bookmarks from the bookmarks table, see
|
||||
:help NERDTree-D
|
||||
- lots of refactoring
|
||||
2.13.0
|
||||
- make NERDTreeChDir option default to 0 (i.e. never change vims current
|
||||
working dir by default)
|
||||
- when moving/deleting nodes with the filesystem menu, move/delete any
|
||||
associated bookmarks
|
||||
- make the t/T on directory nodes open a fresh NERD tree for the selected
|
||||
dir in a new tab, rather than a netrw.
|
||||
- place the cursor at the top of the bookmarks table when opening it with B
|
||||
- make NERDTreeQuitOnOpen option work with the g<tab> and go mappings,
|
||||
thanks to Maxim Kim for the bug report
|
||||
- change how invalid bookmarks are handled. Now they are not deleted. If a
|
||||
bookmark is malformed (in the bookmarks file) or points to an
|
||||
invalid/nonexisting location then print an error and place the offending
|
||||
bookmarks at the bottom of the bookmarks file. See :help
|
||||
|NERDTreeInvalidBookmarks| for info. Thanks to Zhang Shuhan for the
|
||||
suggestion and the testing.
|
||||
- fix a bug with the 'o' mapping that occurred when opening a new buffer
|
||||
for a file whose name was a substring of an already open file. Thanks to
|
||||
Charlton Wang for the report.
|
||||
- stop the script from going into an infinite loop when it tries to cache
|
||||
a named pipe. Thanks to Charlton Wang for the report.
|
||||
|
||||
2.12.0
|
||||
- added a UI for bookmarks. See :help NERDTreeBookmarkTable for details.
|
||||
Thanks to Zhang Shuhan for testing and bug reports.
|
||||
@@ -1148,7 +1201,7 @@ NERD tree window optional.
|
||||
|
||||
Thanks to Zhang Shuhan for all of his emails and testing to help improve the
|
||||
NERD tree path handling. Thanks also for suggesting the bookmarks gui, and for
|
||||
testing and making suggestions and bugreports.
|
||||
testing and his many suggestions and bugreports about bookmarks.
|
||||
|
||||
Thanks to Cory Echols for sending a patch to add the :NERDTreeClose command and
|
||||
set the NERD tree buffers filetype to 'nerdtree'
|
||||
@@ -1160,6 +1213,13 @@ Thanks to Yuan Jiang for suggesting the "o" mapping shouldnt clobber "special"
|
||||
windows, like taglist.
|
||||
|
||||
Thanks to Matan Nassau for the patch to add the NERDTreeQuitOnOpen option.
|
||||
|
||||
Thanks to Maxim Kim for reporting a bug with g<tab> and go mappings when
|
||||
NERDTreeQuitOnOpen was set.
|
||||
|
||||
Thanks to Charlton Wang for reporting bugs with the 'o' mapping and with
|
||||
handling named pipes.
|
||||
|
||||
==============================================================================
|
||||
9. License *NERDTreeLicense*
|
||||
|
||||
|
||||
2124
plugin/NERD_tree.vim
2124
plugin/NERD_tree.vim
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user