feat(projects): working_dir = "{prompt}" — a generic project that asks for its directory#49
Open
milehimikey wants to merge 1 commit into
Open
feat(projects): working_dir = "{prompt}" — a generic project that asks for its directory#49milehimikey wants to merge 1 commit into
milehimikey wants to merge 1 commit into
Conversation
…ject
A project whose working_dir is the sentinel {prompt} asks for its directory
when activated instead of pinning one in the TOML, so a single config can open
any repo. Enter on such a project (or ctrl+g, before the branch prompt) opens
a path input; ~ and $VARS expand exactly like a configured working_dir, the
path must name an existing directory (inline error otherwise), and the opened
workspace takes the directory's basename as its label.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A project whose
working_diris the sentinel{prompt}asks for its directory when activated instead of pinning one in the TOML. This makes a single config a universal template — one entry opens any repo with the project's tabs:Behavior
~and$VARexpand exactly like a configuredworking_dir(sharedexpandPathhelper, same Windows-aware resolution as feat: Windows support #45). A path that doesn't name an existing directory shows an inline error and keeps the prompt up; esc backs out to the list.~/dev/options-cafeyields a workspace labeledoptions-cafe, notproject.{prompt}.Testing
go test -race ./...passes; five new model tests cover enter-opens-prompt, valid path (stamps dir + renames), invalid path (inline error, prompt stays), the ctrl+g path→branch chain, and esc.🤖 Generated with Claude Code