mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 19:33:50 -05:00
delete a paths bookmarks when delete the path
This commit is contained in:
@@ -1202,6 +1202,12 @@ function! s:oPath.Delete() dict
|
|||||||
throw "NERDTree.Path.Deletion Exception: Could not delete file: '" . self.Str(0) . "'"
|
throw "NERDTree.Path.Deletion Exception: Could not delete file: '" . self.Str(0) . "'"
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
"delete all bookmarks for this path
|
||||||
|
for i in self.BookmarkNames()
|
||||||
|
let bookmark = s:oBookmark.BookmarkFor(i)
|
||||||
|
call bookmark.Delete()
|
||||||
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"FUNCTION: oPath.ExtractDriveLetter(fullpath) {{{3
|
"FUNCTION: oPath.ExtractDriveLetter(fullpath) {{{3
|
||||||
|
|||||||
Reference in New Issue
Block a user