mirror of
https://github.com/preservim/nerdtree.git
synced 2025-02-12 22:52:59 +08:00
open file bookmarks when user activates them
when the user activates a file bookmark open that file in the previous window (i.e. do the 'o' mapping)
This commit is contained in:
parent
7ca9b07b68
commit
e1bd98fc7c
|
@ -2688,7 +2688,11 @@ function! s:ActivateNode()
|
||||||
else
|
else
|
||||||
let bookmark = s:GetSelectedBookmark()
|
let bookmark = s:GetSelectedBookmark()
|
||||||
if !empty(bookmark)
|
if !empty(bookmark)
|
||||||
call s:BookmarkToRoot(bookmark.name)
|
if bookmark.path.isDirectory
|
||||||
|
call s:BookmarkToRoot(bookmark.name)
|
||||||
|
else
|
||||||
|
call s:OpenFileNode(s:oTreeFileNode.New(bookmark.path))
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in New Issue
Block a user