From 782e60efc9d6c92b93da7513734cbc7a463ed8d5 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Fri, 6 Jun 2008 22:27:01 +1200 Subject: [PATCH] display marks on tree --- plugin/NERD_tree.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index e24a70a..71272a8 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -1211,6 +1211,11 @@ function! s:oPath.StrDisplay() dict let toReturn .= ' -> ' . self.symLinkDest endif + let marks = self.MarkNames() + if !empty(marks) + let toReturn .= ' {' . join(marks, ',') . '}' + endif + if self.isReadOnly let toReturn .= s:tree_RO_str endif @@ -2763,6 +2768,7 @@ function! s:MarkNode(name) if currentNode != {} let marks = s:GetMarks() let marks[a:name] = currentNode.path + call s:RenderView() else call s:Echo("select a node first") endif