oh-my-worktree 0.4.1 → 0.4.2

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.
Files changed (2) hide show
  1. package/README.md +70 -11
  2. package/package.json +8 -3
package/README.md CHANGED
@@ -14,33 +14,92 @@ Or use with npx:
14
14
  npx oh-my-worktree
15
15
  ```
16
16
 
17
- ## Usage
17
+ ## Quick Start
18
18
 
19
19
  ```bash
20
- # Run in a bare repository or worktree directory
21
- owt
22
-
23
20
  # Clone a repository as bare with first worktree
24
- owt clone <url>
21
+ owt clone https://github.com/user/repo.git
22
+ cd repo/main
25
23
 
26
- # Show guide for converting existing repo to bare
27
- owt init
24
+ # Run TUI
25
+ owt
28
26
  ```
29
27
 
30
28
  ## Key Bindings
31
29
 
30
+ ### Navigation
31
+ | Key | Action |
32
+ |-----|--------|
33
+ | `j` / `↓` | Move down |
34
+ | `k` / `↑` | Move up |
35
+ | `g` | Jump to current worktree |
36
+ | `gg` | Jump to top |
37
+ | `G` | Jump to bottom |
38
+ | `/` | Search/filter |
39
+
40
+ ### Worktree Actions
32
41
  | Key | Action |
33
42
  |-----|--------|
34
- | `↑/k` | Previous item |
35
- | `↓/j` | Next item |
43
+ | `Enter` | Enter selected worktree |
36
44
  | `a` | Add new worktree |
37
45
  | `d` | Delete worktree |
38
46
  | `o` | Open in editor |
39
- | `t` | Open terminal |
40
- | `f` | Fetch all |
47
+ | `t` | Open in terminal |
48
+ | `y` | Copy path to clipboard |
49
+
50
+ ### Other
51
+ | Key | Action |
52
+ |-----|--------|
53
+ | `f` | Fetch remotes |
41
54
  | `r` | Refresh list |
55
+ | `s` | Cycle sort mode |
56
+ | `c` | Open config |
57
+ | `?` | Show help |
42
58
  | `q` | Quit |
43
59
 
60
+ ## Branch Types (v0.4.1+)
61
+
62
+ When adding a new worktree, select branch type for automatic base branch:
63
+
64
+ | Key | Type | Base |
65
+ |-----|------|------|
66
+ | `f` | feature | develop |
67
+ | `h` | hotfix | main |
68
+ | `r` | release | develop |
69
+ | `b` | bugfix | develop |
70
+ | `c` | custom | (select manually) |
71
+
72
+ In branch input screen:
73
+ - `Shift+F` - Fetch remote base branch
74
+ - `Shift+U` - Use remote as base
75
+ - `Shift+L` - Use local as base
76
+
77
+ ## Status Icons
78
+
79
+ | Icon | Meaning |
80
+ |------|---------|
81
+ | `✓` | Clean |
82
+ | `+` | Staged changes |
83
+ | `~` | Unstaged changes |
84
+ | `!` | Conflicts |
85
+ | `*` | Staged + Unstaged |
86
+
87
+ ## Configuration
88
+
89
+ Config file: `~/.config/owt/config.toml`
90
+
91
+ ```toml
92
+ editor = "code"
93
+ terminal = "Ghostty"
94
+ copy_files = [".env", ".envrc"]
95
+
96
+ [[branch_types]]
97
+ name = "feature"
98
+ prefix = "feature/"
99
+ base = "develop"
100
+ shortcut = "f"
101
+ ```
102
+
44
103
  ## Requirements
45
104
 
46
105
  - Git 2.5+ (for worktree support)
package/package.json CHANGED
@@ -1,13 +1,18 @@
1
1
  {
2
2
  "name": "oh-my-worktree",
3
- "version": "0.4.1",
4
- "description": "A TUI tool for managing Git worktrees in bare repositories",
3
+ "version": "0.4.2",
4
+ "description": "A TUI tool for managing Git worktrees in bare repositories with branch type support",
5
5
  "keywords": [
6
6
  "git",
7
7
  "worktree",
8
8
  "tui",
9
9
  "cli",
10
- "bare-repository"
10
+ "bare-repository",
11
+ "git-worktree",
12
+ "git-flow",
13
+ "branch-management",
14
+ "terminal",
15
+ "developer-tools"
11
16
  ],
12
17
  "author": "matthew",
13
18
  "license": "MIT",