Function: treemacs--show-single-project
treemacs--show-single-project is a byte-compiled function defined in
treemacs-rendering.el.
Signature
(treemacs--show-single-project PATH NAME)
Documentation
Show only a project for the given PATH and NAME in the current workspace.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-rendering.el
(defun treemacs--show-single-project (path name)
"Show only a project for the given PATH and NAME in the current workspace."
(let* ((ws (treemacs-current-workspace)))
(setf (treemacs-workspace->projects ws)
(list (treemacs-project->create!
:name name
:path path
:path-status (treemacs--get-path-status path))))
(--when-let (treemacs-get-local-buffer)
(with-current-buffer it
(treemacs--consolidate-projects)))
(-let [treemacs-select-when-already-in-treemacs 'stay]
(treemacs-select-window))
(goto-char (point-min))
(-if-let (btn (treemacs-current-button))
(unless (treemacs-is-node-expanded? btn)
(treemacs--expand-root-node btn)))
(treemacs--evade-image)))