Skip to content

feat(workmux): choose base branch in tmux add flows#402

Merged
dkarter merged 1 commit intomasterfrom
workmux-add-prompt-improvements
Mar 21, 2026
Merged

feat(workmux): choose base branch in tmux add flows#402
dkarter merged 1 commit intomasterfrom
workmux-add-prompt-improvements

Conversation

@dkarter
Copy link
Copy Markdown
Owner

@dkarter dkarter commented Mar 21, 2026

Summary

This updates the tmux workmux add flows so you can choose the base branch before creating a worktree, with a TV picker that defaults to the repo's main branch and keeps the current branch as the next quick option.

Changes

  • add a new Television cable: workmux-base-branch
  • add bin/tv-workmux-base-branches to generate an ordered branch list (main first, current second, then the rest)
  • update bin/tmux-workmux-add to select base branch via TV and pass --base
  • update bin/tmux-workmux-add-prompt to select base branch via TV and pass --base
  • switch both tmux scripts to zsh shebang for repo consistency

Testing

  • zsh -n bin/tmux-workmux-add
  • zsh -n bin/tmux-workmux-add-prompt
  • zsh -n bin/tv-workmux-base-branches
  • ./bin/tv-workmux-base-branches (verified output ordering)
  • manual run of ./bin/tmux-workmux-add to verify interactive base-branch selection

@dkarter dkarter enabled auto-merge (squash) March 21, 2026 00:06
@dkarter dkarter merged commit f11b7d5 into master Mar 21, 2026
6 checks passed
@dkarter dkarter deleted the workmux-add-prompt-improvements branch March 21, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant