Cómo crear un directorio usando nerdtree


He estado usando NERDTree por un tiempo. Cada vez que necesito crear un nuevo directorio necesito ir a terminal. Hay una manera rápida y fácil de crear un directorio usando NERDTree.

Leí el doc pero no pude encontrar nada.

 129
Author: Nick Vanderbilt, 2010-05-22

2 answers

Cuando esté en la ventana de NERDTree, presione 'm'; debería ver un menú en la parte inferior. Escriba 'a' para agregar childnode. Ahora ingrese el directorio que desea crear, asegurándose de agregar un ' / ' al final, de lo contrario el script crearía un archivo.

AFAIK NERDTree no puede crear directorios padre como lo hace 'mkdir-p'.

 221
Author: housetier,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2010-05-22 21:59:43

Al presionar m se abrirá un menú a continuación y puede seleccionar de una lista de acciones.

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/

Presionando a le permitiría agregar un childnode. Un childnode puede ser un archivo o carpeta dependiendo de si agrega una barra diagonal ( / ) o no.

Si no agrega una barra diagonal como la siguiente, crearía un archivo.

Add a childnode
==========================================================
Enter the dir/file name to be created. Dirs end with a '/'
/Library/WebServer/Documents/new-project/app/Model/file

Si agrega una barra diagonal como la siguiente, crearía una carpeta.

Add a childnode
==========================================================
Enter the dir/file name to be created. Dirs end with a '/'
/Library/WebServer/Documents/new-project/app/Model/folder/
 3
Author: mrded,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-08-01 09:36:49