Function: treemacs-create-workspace
treemacs-create-workspace is an interactive and byte-compiled function
defined in treemacs-interface.el.
Signature
(treemacs-create-workspace)
Documentation
Create a new workspace.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-interface.el
(defun treemacs-create-workspace ()
"Create a new workspace."
(interactive)
(pcase (treemacs-do-create-workspace)
(`(success ,workspace)
(treemacs-pulse-on-success "Workspace %s successfully created."
(propertize (treemacs-workspace->name workspace) 'face 'font-lock-type-face)))
(`(invalid-name ,name)
(treemacs-pulse-on-failure "Name '%s' is invalid."
(propertize name 'face 'font-lock-string-face)))
(`(duplicate-name ,duplicate)
(treemacs-pulse-on-failure "A workspace with the name %s already exists."
(propertize (treemacs-workspace->name duplicate) 'face 'font-lock-string-face)))))