make t/T open a nerd tree rather than netrw
make the t/T on directory nodes open a fresh NERD tree for the selected dir in a new tab, rather than a netrw.
This commit is contained in:
parent
fd487dfa5c
commit
bccd73c8f5
@ -240,8 +240,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
|
||||
@ -874,6 +874,10 @@ fridge for later ;)
|
||||
==============================================================================
|
||||
7. Changelog *NERDTreeChangelog*
|
||||
|
||||
2.x.x
|
||||
- make the t/T on directory nodes open a fresh NERD tree for the selected
|
||||
dir in a new tab, rather than a netrw.
|
||||
|
||||
2.12.0
|
||||
- added a UI for bookmarks. See :help NERDTreeBookmarkTable for details.
|
||||
Thanks to Zhang Shuhan for testing and bug reports.
|
||||
|
@ -3214,7 +3214,8 @@ function! s:OpenInNewTab(stayCurrentTab)
|
||||
let treenode = s:GetSelectedNode()
|
||||
if treenode != {}
|
||||
if treenode.path.isDirectory
|
||||
exec "tabnew +NERDTree\\ " . treenode.path.StrForNERDTreeCmd()
|
||||
tabnew
|
||||
call s:InitNerdTree(treenode.path.StrForOS(0))
|
||||
else
|
||||
exec "tabedit " . treenode.path.StrForEditCmd()
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user