Function: treemacs-find-workspace-where

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

Signature

(treemacs-find-workspace-where PREDICATE)

Documentation

Find a workspace matching the given PREDICATE.

Predicate should be a function that takes a treemacs-workspace as its single argument. 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-where (predicate)
  "Find a workspace matching the given PREDICATE.
Predicate should be a function that takes a `treemacs-workspace' as its single
argument.  nil is returned when no workspace is found."
  (--first (funcall predicate it) treemacs--workspaces))