Merge (p)roperties (for Windows) into the (l)ist menu item.
This commit is contained in:
parent
fb030bcb1c
commit
c60f401371
@ -37,6 +37,8 @@ endif
|
|||||||
|
|
||||||
if has("unix") || has("osx")
|
if has("unix") || has("osx")
|
||||||
call NERDTreeAddMenuItem({'text': '(l)ist the current node', 'shortcut': 'l', 'callback': 'NERDTreeListNode'})
|
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
|
endif
|
||||||
|
|
||||||
"FUNCTION: s:echo(msg){{{1
|
"FUNCTION: s:echo(msg){{{1
|
||||||
@ -212,8 +214,8 @@ function! NERDTreeDeleteNode()
|
|||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" FUNCTION: NERDTreeNodeProperties() {{{1
|
" FUNCTION: NERDTreeListNodeWin32() {{{1
|
||||||
function! NERDTreeNodeProperties()
|
function! NERDTreeListNodeWin32
|
||||||
let currentNode = g:NERDTreeFileNode.GetSelected()
|
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())))
|
call s:echo(getfsize(currentNode.path.str())." bytes modified on ".strftime("%A %Y-%m-%d %H:%M:%S", getftime(currentNode.path.str())))
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user