mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
read and write marks automatically
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user