Function: treemacs-delete-single-node
treemacs-delete-single-node is a byte-compiled function defined in
treemacs-rendering.el.
Signature
(treemacs-delete-single-node PATH &optional PROJECT)
Documentation
Delete single node at given PATH and PROJECT.
Does nothing when the given node is not visible. Must be run in a treemacs buffer.
This will also take care of all the necessary house-keeping like making sure child nodes are deleted as well and everything is removed from the dom.
If multiple nodes are to be deleted it is more efficient to make multiple calls
to treemacs-do-delete-single-node wrapped in treemacs-save-position instead.
PATH: Node Path Project: Project Struct
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-rendering.el
(defun treemacs-delete-single-node (path &optional project)
"Delete single node at given PATH and PROJECT.
Does nothing when the given node is not visible. Must be run in a treemacs
buffer.
This will also take care of all the necessary house-keeping like making sure
child nodes are deleted as well and everything is removed from the dom.
If multiple nodes are to be deleted it is more efficient to make multiple calls
to `treemacs-do-delete-single-node' wrapped in `treemacs-save-position' instead.
PATH: Node Path
Project: Project Struct"
(treemacs-save-position
(treemacs-do-delete-single-node path project)
(hl-line-highlight)))