mirror of
https://github.com/preservim/nerdtree.git
synced 2025-02-18 12:52:44 +08:00
add oPath#MarkNames()
This commit is contained in:
parent
600f2cac14
commit
7b26dac959
|
@ -1068,6 +1068,17 @@ function! s:oPath.Equals(path) dict
|
||||||
return self.Str(0) == a:path.Str(0)
|
return self.Str(0) == a:path.Str(0)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
"FUNCTION: oPath.MarkNames() {{{3
|
||||||
|
function! s:oPath.MarkNames() dict
|
||||||
|
let toReturn = []
|
||||||
|
let marks = s:GetMarks()
|
||||||
|
for k in keys(marks)
|
||||||
|
if marks[k].Equals(self)
|
||||||
|
call add(toReturn, k)
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
return toReturn
|
||||||
|
endfunction
|
||||||
"FUNCTION: oPath.New() {{{3
|
"FUNCTION: oPath.New() {{{3
|
||||||
"
|
"
|
||||||
"The Constructor for the Path object
|
"The Constructor for the Path object
|
||||||
|
|
Loading…
Reference in New Issue
Block a user