Function: treemacs-create-dir

treemacs-create-dir is an autoloaded, interactive and byte-compiled function defined in treemacs-file-management.el.

Signature

(treemacs-create-dir)

Documentation

Create a new directory.

Enter first the directory to create the new dir in, then the new dir's name. The pre-selection for what directory to create in is based on the "nearest" path to point - the containing directory for tags and files or the directory itself, using $HOME when there is no path at or near point to grab.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-file-management.el
;;;###autoload
(defun treemacs-create-dir ()
  "Create a new directory.
Enter first the directory to create the new dir in, then the new dir's name.
The pre-selection for what directory to create in is based on the \"nearest\"
path to point - the containing directory for tags and files or the directory
itself, using $HOME when there is no path at or near point to grab."
  (interactive)
  (treemacs--create-file/dir nil))