[TUI]: Prepopulate Ctrl-G destination with Worktrunk worktree path
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
Inizia con il workflow esistente script_ascend/Ctrl-G e la gestione dei worktree Git selezionati, quindi esegui localmente i test TUI pertinenti o l'interazione. Il lavoro è completato quando il prompt ricava il nome try senza la data con un prefisso try-, usa la destinazione Worktrunk, rimane modificabile, supporta l'annullamento con Escape, conserva i valori predefiniti per i casi non-worktree e include test per questi comportamenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di indexzero/try.rs
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 65/100
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
Tutte le issue di indexzero/try.rs
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
DayuanJiang/PecoFence#139 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
nearai/compose-manager#73 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
akitaonrails/ai-memory#1664 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno