Function: treemacs--select-project-by-name

treemacs--select-project-by-name is a byte-compiled function defined in treemacs-core-utils.el.

Signature

(treemacs--select-project-by-name)

Documentation

Interactively choose a project from the current workspace.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(defun treemacs--select-project-by-name ()
  "Interactively choose a project from the current workspace."
  (let* ((projects (--map (cons (treemacs-project->name it) it)
                          (-> (treemacs-current-workspace) (treemacs-workspace->projects))))
         (selection (completing-read "Project: " projects)))
    (cdr (assoc selection projects))))