Function: eca--discover-workspaces
eca--discover-workspaces is a natively compiled function defined in
eca.el.
Signature
(eca--discover-workspaces)
Documentation
Ask user for workspaces.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca.el
(defun eca--discover-workspaces ()
"Ask user for workspaces."
(let ((root (funcall eca-find-root-for-buffer-function))
(add-workspace? "yes")
(workspaces '()))
(while (string= "yes" add-workspace?)
(let ((new-workspace (read-directory-name "Select the workspace root:" root)))
(push new-workspace workspaces)
(setq add-workspace? (completing-read "Add more workspaces?"
(lambda (string pred action)
(if (eq action 'metadata)
`(metadata (display-sort-function . identity))
(complete-with-action action '("no" "yes") string pred)))))))
workspaces))