Skip to content

Commit e1e150e

Browse files
committed
feat: Ask to create workspace if it doesn't exist
1 parent 498b465 commit e1e150e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

treebundel.el

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,10 @@ minibuffer.
579579
580580
REQUIRE-MATCH forces a valid workspace to be selected. This removes the ability
581581
to create a workspace with a new entry."
582+
(when (and (not (file-exists-p treebundel-workspace-root))
583+
(y-or-n-p (format "%s directory doesn't exist. Create?"
584+
treebundel-workspace-root)))
585+
(make-directory treebundel-workspace-root))
582586
(let* ((candidates (mapcar (lambda (workspace)
583587
(cons workspace 'existing))
584588
(treebundel--workspaces)))

0 commit comments

Comments
 (0)