worktree-launcher 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -36,21 +36,28 @@ npm install -g worktree-launcher
36
36
 
37
37
  Requires Node.js 18+ and git.
38
38
 
39
- ## Interactive Mode
39
+ ## Interactive Mode (TUI)
40
40
 
41
- Run `wt` with no arguments to enter interactive mode:
41
+ Run `wt` with no arguments to open a terminal UI similar to lazygit:
42
42
 
43
43
  ```bash
44
44
  wt
45
45
  ```
46
46
 
47
- This shows a navigable list of all worktrees where you can:
48
- - Select a worktree to see actions
49
- - Launch an AI assistant in any worktree
50
- - Delete worktrees
51
- - Create new worktrees
47
+ The TUI displays all worktrees in a navigable list with keyboard shortcuts:
52
48
 
53
- Use arrow keys to navigate and Enter to select.
49
+ | Key | Action |
50
+ |-----|--------|
51
+ | `n` | Create new worktree |
52
+ | `d` | Delete selected worktree |
53
+ | `c` | Launch Claude Code in selected worktree |
54
+ | `x` | Launch Codex in selected worktree |
55
+ | `p` | Push branch to remote |
56
+ | `Enter` | Print cd command for selected worktree |
57
+ | `r` | Refresh worktree list |
58
+ | `q` | Quit |
59
+
60
+ Navigate with arrow keys or vim-style `j`/`k`. The status bar shows the full path of the selected worktree.
54
61
 
55
62
  ## Commands
56
63
 
@@ -73,6 +80,7 @@ wt new <branch-name> [options]
73
80
  Options:
74
81
  - `-i, --install` - Run package manager install after creating worktree
75
82
  - `-s, --skip-launch` - Create worktree without launching AI assistant
83
+ - `-p, --push` - Push branch to remote (makes it visible on GitHub immediately)
76
84
 
77
85
  Examples:
78
86
 
@@ -80,11 +88,17 @@ Examples:
80
88
  # Create worktree and launch AI selector
81
89
  wt new feature-auth
82
90
 
91
+ # Create worktree and push to GitHub
92
+ wt new feature-auth --push
93
+
83
94
  # Create worktree and run npm/yarn/pnpm install
84
95
  wt new feature-auth --install
85
96
 
86
97
  # Just create the worktree
87
98
  wt new feature-auth --skip-launch
99
+
100
+ # Combine options
101
+ wt new feature-auth --push --install --skip-launch
88
102
  ```
89
103
 
90
104
  The worktree is created at `../<repo-name>-<branch-name>/`. For example, if you run `wt new feature-auth` in `/code/myproject`, the worktree is created at `/code/myproject-feature-auth`.