Skip to content

Commit 71d6c1d

Browse files
committed
specify 'file' input types to allow for tab-completion of paths when copying, moving, or creating a node
1 parent 1cd5048 commit 71d6c1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nerdtree_plugin/fs_menu.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function! NERDTreeAddNode()
5757
let newNodeName = input("Add a childnode\n".
5858
\ "==========================================================\n".
5959
\ "Enter the dir/file name to be created. Dirs end with a '/'\n" .
60-
\ "", curDirNode.path.str() . g:NERDTreePath.Slash())
60+
\ "", curDirNode.path.str() . g:NERDTreePath.Slash(), "file")
6161

6262
if newNodeName ==# ''
6363
call s:echo("Node Creation Aborted.")
@@ -85,7 +85,7 @@ function! NERDTreeMoveNode()
8585
let newNodePath = input("Rename the current node\n" .
8686
\ "==========================================================\n" .
8787
\ "Enter the new path for the node: \n" .
88-
\ "", curNode.path.str())
88+
\ "", curNode.path.str(), "file")
8989

9090
if newNodePath ==# ''
9191
call s:echo("Node Renaming Aborted.")
@@ -163,7 +163,7 @@ function! NERDTreeCopyNode()
163163
let newNodePath = input("Copy the current node\n" .
164164
\ "==========================================================\n" .
165165
\ "Enter the new path to copy the node to: \n" .
166-
\ "", currentNode.path.str())
166+
\ "", currentNode.path.str(), "file")
167167

168168
if newNodePath != ""
169169
"strip trailing slash

0 commit comments

Comments
 (0)