read and write marks automatically

This commit is contained in:
Martin Grenfell
2008-06-08 17:58:38 +12:00
parent 0a91f3511e
commit 371379a860

View File

@@ -1432,7 +1432,7 @@ function! s:InitNerdTree(dir)
call t:NERDTreeRoot.Open() call t:NERDTreeRoot.Open()
call s:CreateTreeWin() call s:CreateTreeWin()
call s:ReadMarks()
call s:RenderView() call s:RenderView()
endfunction endfunction
@@ -2855,6 +2855,7 @@ function! s:MarkNode(name)
if currentNode != {} if currentNode != {}
let marks = s:GetMarks() let marks = s:GetMarks()
let marks[a:name] = currentNode.path let marks[a:name] = currentNode.path
call s:WriteMarks()
call s:RenderView() call s:RenderView()
else else
call s:Echo("select a node first") call s:Echo("select a node first")