mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-22 14:10:07 +08:00
read and write marks automatically
This commit is contained in:
parent
0a91f3511e
commit
371379a860
|
@ -1432,7 +1432,7 @@ function! s:InitNerdTree(dir)
|
|||
call t:NERDTreeRoot.Open()
|
||||
|
||||
call s:CreateTreeWin()
|
||||
|
||||
call s:ReadMarks()
|
||||
call s:RenderView()
|
||||
endfunction
|
||||
|
||||
|
@ -2855,6 +2855,7 @@ function! s:MarkNode(name)
|
|||
if currentNode != {}
|
||||
let marks = s:GetMarks()
|
||||
let marks[a:name] = currentNode.path
|
||||
call s:WriteMarks()
|
||||
call s:RenderView()
|
||||
else
|
||||
call s:Echo("select a node first")
|
||||
|
|
Loading…
Reference in New Issue
Block a user