From c60f40137170fe9685b15467b53276179cea0fc9 Mon Sep 17 00:00:00 2001 From: Phil Runninger Date: Thu, 12 Nov 2015 16:20:20 -0500 Subject: [PATCH] Merge (p)roperties (for Windows) into the (l)ist menu item. --- nerdtree_plugin/fs_menu.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nerdtree_plugin/fs_menu.vim b/nerdtree_plugin/fs_menu.vim index db729b4..c26255f 100644 --- a/nerdtree_plugin/fs_menu.vim +++ b/nerdtree_plugin/fs_menu.vim @@ -37,6 +37,8 @@ endif if has("unix") || has("osx") call NERDTreeAddMenuItem({'text': '(l)ist the current node', 'shortcut': 'l', 'callback': 'NERDTreeListNode'}) +else + call NERDTreeAddMenuItem({'text': '(l)ist the current node', 'shortcut': 'l', 'callback': 'NERDTreeListNodeWin32'}) endif "FUNCTION: s:echo(msg){{{1 @@ -212,8 +214,8 @@ function! NERDTreeDeleteNode() endfunction -" FUNCTION: NERDTreeNodeProperties() {{{1 -function! NERDTreeNodeProperties() +" FUNCTION: NERDTreeListNodeWin32() {{{1 +function! NERDTreeListNodeWin32 let currentNode = g:NERDTreeFileNode.GetSelected() call s:echo(getfsize(currentNode.path.str())." bytes modified on ".strftime("%A %Y-%m-%d %H:%M:%S", getftime(currentNode.path.str()))) endfunction