changed the key for the filesystem menu to be mnemonic
This commit is contained in:
parent
6a77424c25
commit
020c635cca
@ -2829,11 +2829,11 @@ function! s:ShowFileSystemMenu()
|
|||||||
let prompt = "NERDTree Filesystem Menu\n" .
|
let prompt = "NERDTree Filesystem Menu\n" .
|
||||||
\ "==========================================================\n".
|
\ "==========================================================\n".
|
||||||
\ "Select the desired operation: \n" .
|
\ "Select the desired operation: \n" .
|
||||||
\ " (1) - Add a childnode\n".
|
\ " (a)dd a childnode\n".
|
||||||
\ " (2) - Rename the current node\n".
|
\ " (m)ove the current node\n".
|
||||||
\ " (3) - Delete the current node\n"
|
\ " (d)elete the current node\n"
|
||||||
if s:oPath.CopyingSupported()
|
if s:oPath.CopyingSupported()
|
||||||
let prompt = prompt . " (4) - Copy the current node\n\n"
|
let prompt = prompt . " (c)opy the current node\n\n"
|
||||||
else
|
else
|
||||||
let prompt = prompt . " \n"
|
let prompt = prompt . " \n"
|
||||||
endif
|
endif
|
||||||
@ -2842,13 +2842,13 @@ function! s:ShowFileSystemMenu()
|
|||||||
|
|
||||||
let choice = nr2char(getchar())
|
let choice = nr2char(getchar())
|
||||||
|
|
||||||
if choice == 1
|
if choice ==? "a"
|
||||||
call s:InsertNewNode()
|
call s:InsertNewNode()
|
||||||
elseif choice == 2
|
elseif choice ==? "m"
|
||||||
call s:RenameCurrent()
|
call s:RenameCurrent()
|
||||||
elseif choice == 3
|
elseif choice ==? "d"
|
||||||
call s:DeleteNode()
|
call s:DeleteNode()
|
||||||
elseif choice == 4 && s:oPath.CopyingSupported()
|
elseif choice ==? "c" && s:oPath.CopyingSupported()
|
||||||
call s:CopyNode()
|
call s:CopyNode()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user