refactor the t/T mappings for bookmarks
this way feels cleaner
This commit is contained in:
parent
bccd73c8f5
commit
236df49362
@ -3223,7 +3223,8 @@ function! s:OpenInNewTab(stayCurrentTab)
|
||||
let bookmark = s:GetSelectedBookmark()
|
||||
if bookmark != {}
|
||||
if bookmark.path.isDirectory
|
||||
exec "tabnew +NERDTreeFromBookmark\\ " . bookmark.name
|
||||
tabnew
|
||||
call s:InitNerdTree(bookmark.name)
|
||||
else
|
||||
exec "tabedit " . bookmark.path.StrForEditCmd()
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user