feat: setup/teardown commands and configurable symlink dirs in project settings#23
Open
linniksa wants to merge 3 commits intojohannesjo:mainfrom
Open
feat: setup/teardown commands and configurable symlink dirs in project settings#23linniksa wants to merge 3 commits intojohannesjo:mainfrom
linniksa wants to merge 3 commits intojohannesjo:mainfrom
Conversation
Replace hardcoded symlink candidate list with a generic directory browser backed by a new ListProjectEntries IPC call. The component provides autocomplete with Tab navigation into subdirectories.
Allow configuring shell commands that run automatically in each new worktree (setup) and before worktree removal (teardown). Commands support $PROJECT_ROOT and $WORKTREE variable substitution. A banner in TaskPanel shows live output and allows retry/skip on failure.
Replace checkbox-based SymlinkDirPicker with PathSelector in the new-task dialog. Symlink dirs now come from project defaults (defaultSymlinkDirs) instead of a hardcoded candidate list.
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.
Add per-project setup and teardown commands that run automatically when worktrees are created or removed. This lets users configure things
like
npm install, environment setup, or cleanup scripts that execute in the context of each task's worktree.Setup/teardown commands:
CommandListEditorcomponent$PROJECT_ROOTand$WORKTREEvariable substitution in commandsSetupBannerabove the terminal with retry/skip on failureConfigurable symlink directories:
defaultSymlinkDirssettingPathSelectorcomponent with autocomplete backed byListProjectEntriesIPC (Tab to navigate into subdirectories, supports nestedpaths)