You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance worktree commands with flexible path and naming support
- Extend try . to support custom names and different repo paths (try . [name], try ./path [name])
- Add explicit try worktree dir [name] command for non-shell usage
- Improve git worktree detection to work with specified repository paths
- Update documentation with new command variants and usage examples
- Add comprehensive test coverage for worktree functionality
- Refactor shell emission helpers for better organization
Copy file name to clipboardExpand all lines: AGENTS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@
9
9
## CLI Interface
10
10
-`try init [PATH]`: Emits a tiny shell wrapper function for your shell. PATH sets the root (absolute path recommended). The function evals the printed, shell-neutral script to `cd` into selections.
11
11
-`try cd [QUERY]`: Launches the interactive selector. If `QUERY` looks like a Git URL, it performs a clone workflow instead. Prints a shell script to stdout; use via the installed function.
12
+
-`try . [name]`: Shorthand to create a date-prefixed directory and, if inside a Git repo, add a detached worktree. Optional `name` overrides the basename.
13
+
-`try worktree dir [name]`: Same as above but explicit CLI, useful without the shell wrapper.
12
14
-`try clone <git-uri> [name]`: Clones into the root. Default name is `YYYY-MM-DD-user-repo` (strips `.git`). Optional `name` overrides.
13
15
- Flags: `--path PATH` (for `cd`/`clone`) overrides the root for that call; `--help` prints global help.
14
16
- Environment: `TRY_PATH` sets the default root when not using `--path`.
0 commit comments