mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 03:43:50 -05:00
make :OpenBookmark open a netrw for dir bookmarks
This commit is contained in:
@@ -2984,7 +2984,9 @@ function! s:OpenBookmark(name)
|
|||||||
let bookmarks = s:GetBookmarks()
|
let bookmarks = s:GetBookmarks()
|
||||||
let targetNode = s:oTreeFileNode.New(bookmarks[a:name])
|
let targetNode = s:oTreeFileNode.New(bookmarks[a:name])
|
||||||
endtry
|
endtry
|
||||||
if !targetNode.path.isDirectory
|
if targetNode.path.isDirectory
|
||||||
|
call s:OpenExplorerFor(targetNode)
|
||||||
|
else
|
||||||
call s:OpenFileNode(targetNode)
|
call s:OpenFileNode(targetNode)
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user