[TUI]: Prepopulate Ctrl-G destination with Worktrunk worktree path
还没有人认领这个 Issue。
评估
调研方向
从现有的 script_ascend/Ctrl-G 工作流和所选 Git worktrees 的处理开始,然后在本地运行相关的 TUI 测试或交互。完成的标准是:prompt 推断出带有 try- 前缀的去除日期后的 try 名称,使用 Worktrunk 目标,保持可编辑,支持使用 Escape 取消,保留非 worktree 的默认值,并且针对这些行为具有测试。
由索引模型根据 Issue 内容生成。
描述
Existing issues
- I searched the existing issues for this interaction.
Current workflow
try worktree <name> creates a detached Git worktree under the tries directory. When that experiment becomes permanent, selecting it in try and pressing Ctrl-G opens the graduate destination prompt.
Today the default is derived from TRY_PROJECTS and the date-stripped try basename. For example:
/Users/cjr/src/tries/2026-07-16-extract-google-ai-serp
→ /Users/cjr/src/extract-google-ai-serp
That default does not match the permanent worktree layout managed by Worktrunk (wt), so it must be replaced manually on every graduation.
Proposed interaction
When the selected try is a Git worktree, Ctrl-G should prepopulate the destination using the Worktrunk worktree directory and name convention.
For this example, the proposed value is:
/Users/cjr/indexzero/0x-worktrees/try-extract-google-ai-serp
The date prefix should be removed from the try basename, and the permanent worktree name should be prefixed with try-.
The prompt must remain editable before confirmation.
Why this improves the TUI
Graduation is the transition from an experiment to a maintained worktree. Prepopulating the actual permanent-worktree location removes repetitive path editing and makes Ctrl-G align with the existing wt workflow.
Acceptance criteria
- Ctrl-G recognizes when the selected try is a Git worktree.
- The graduate prompt defaults to the corresponding Worktrunk worktree path.
-
2026-07-16-extract-google-ai-serpproduces a worktree name oftry-extract-google-ai-serp. - The default path for the example is
/Users/cjr/indexzero/0x-worktrees/try-extract-google-ai-serp. - The destination remains editable.
- Escape cancels without moving the worktree.
- Non-worktree tries retain an appropriate
TRY_PROJECTS-based default. - Tests cover the inferred name, destination, editing, and cancellation behavior.
try version
try v0.1.0
Shell
zsh
Additional context
This concerns the destination proposed by the existing script_ascend/Ctrl-G workflow, not the initial detached worktree created by try worktree.
- 主要语言
- Rust
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
indexzero/try.rs 的其他 Issue
-
enhancement
难度 4/5 3-5 天 新手友好度 65/100
-
enhancement
难度 5/5 一周以上 新手友好度 38/100
-
难度 4/5 3-5 天 新手友好度 52/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
farion1231/cc-switch#8829 ·
维护者通常 1 天内回复
-
bug ci good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
longbridge/gpui-kit#3677 ·
维护者通常 1 天内回复
-
E-pr-welcome
难度 2/5 1-3 小时 新手友好度 77/100
seanmonstar/reqwest#3121 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 68/100
ilya-zlobintsev/LACT#1235 ·
维护者通常 1 天内回复