Function: treemacs-create-file
treemacs-create-file is an autoloaded, interactive and byte-compiled
function defined in treemacs-file-management.el.
Signature
(treemacs-create-file)
Documentation
Create a new file.
Enter first the directory to create the new file in, then the new file'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-file ()
"Create a new file.
Enter first the directory to create the new file in, then the new file'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 t))