我已经使用NERDTree有一段时间了。每次需要创建一个新目录时,我都需要去终端。有没有一种快速简便的方法可以使用NERDTree创建目录。
我已经阅读了文档,但没有找到任何相关内容。
我已经使用NERDTree有一段时间了。每次需要创建一个新目录时,我都需要去终端。有没有一种快速简便的方法可以使用NERDTree创建目录。
我已经阅读了文档,但没有找到任何相关内容。
在 NERDTree 窗口中,按下 'm' 键; 底部应该会出现一个菜单。键入 'a' 以添加子节点。现在输入您想要创建的目录,确保在结尾处添加 '/',否则脚本将创建文件。
据我所知,NERDTree 无法像 'mkdir -p' 一样创建父目录。
按下m
键会在下方打开菜单,您可以从动作列表中进行选择。
NERDTree Menu. Use j/k/enter and the shortcuts indicated
==========================================================
> (a)dd a childnode
(m)ove the current node
(d)elete the current node
(r)eveal in Finder the current node
(o)pen the current node with system editor
(q)uicklook the current node
(c)opy the current node
Add a childnode
==========================================================
Enter the dir/file name to be created. Dirs end with a '/'
/Library/WebServer/Documents/new-teacher-center/app/Model/
按下a
会让你添加一个子节点。子节点可以是文件或文件夹,取决于你是否添加了正斜杠 (/)。
如果您像下面这样不添加正斜杠,则会创建一个文件。
Add a childnode
==========================================================
Enter the dir/file name to be created. Dirs end with a '/'
/Library/WebServer/Documents/new-project/app/Model/file
如果您像下面这样添加一个正斜杠,它将创建一个文件夹。Add a childnode
==========================================================
Enter the dir/file name to be created. Dirs end with a '/'
/Library/WebServer/Documents/new-project/app/Model/folder/
:!mkdir -p path/to/dest
。 - FilBot3