Function: treemacs-find-workspace-by-path

treemacs-find-workspace-by-path is a byte-compiled function defined in treemacs-workspaces.el.

Signature

(treemacs-find-workspace-by-path PATH)

Documentation

Find a workspace with a project containing the given PATH.

nil is returned when no workspace is found.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-workspaces.el
(defun treemacs-find-workspace-by-path (path)
  "Find a workspace with a project containing the given PATH.
nil is returned when no workspace is found."
  (declare (side-effect-free t))
  (--first (treemacs-is-path path :in-workspace it)
           treemacs--workspaces))