Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[TUI]: Prepopulate Ctrl-G destination with Worktrunk worktree path

未关闭
#8 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
git, rust, zsh
领域
cli

调研方向

从现有的 script_ascend/Ctrl-G 工作流和所选 Git worktrees 的处理开始,然后在本地运行相关的 TUI 测试或交互。完成的标准是:prompt 推断出带有 try- 前缀的去除日期后的 try 名称,使用 Worktrunk 目标,保持可编辑,支持使用 Escape 取消,保留非 worktree 的默认值,并且针对这些行为具有测试。

由索引模型根据 Issue 内容生成。

描述

enhancement
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-serp produces a worktree name of try-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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

indexzero/try.rs 的其他 Issue

查看 indexzero/try.rs 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。