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 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")
|
||||||
|
|||||||
Reference in New Issue
Block a user