TUI input editor: Up recalls only the last prompt, no history search, Ctrl+U undoes, End is overloaded
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- cli, developer-experience
Direzione di ricerca
Start in src/ui/tui/keys.rs at the Up/Down history branch and src/ui/input.rs at handle_key; the issue reports a history navigation test and describes the current bindings. Review the footer hint and existing keybinding behavior before splitting the requested changes into manageable parts. Done means history navigation, search, readline clearing, accurate footer hints, and external editor behavior match the suggested direction.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problems
- Up recalls only the most recent prompt. History navigation runs only
if self.input.is_empty()(src/ui/tui/keys.rs, the Up/Down branch); after the first Up the prompt holds that entry, so the next Up moves the cursor instead of going further back. Checked with a test: after submittingfirst,second,third, Up →third, Up again → stillthird. - No history search. Ctrl+R is bound to "toggle thinking".
- Ctrl+U undoes instead of clearing to line start. The textarea's emacs map is used as is (
src/ui/input.rs,handle_key), so the readline reflex undoes the last edit. Ctrl+W/Ctrl+K work. - End/Home are overloaded. The footer says "End or Ctrl+End to return to the bottom", but with text in the prompt End moves the cursor; you have to know Ctrl+End.
- No external editor for long prompts.
Observed running (3, 4) and by test (1) on main (40a2e78).
How others handle it
- Oh My Pi: Up on an empty composer walks history; Ctrl+R opens an inline searchable history; Ctrl+U/Ctrl+K/Ctrl+W readline kills, Ctrl+_ undo; Ctrl+G opens
$VISUAL/$EDITOR; all remappable inkeybindings.yml, listed by/hotkeys. - Claude Code: Up/Ctrl+P walk history from the first row; Ctrl+R history search dialog; Ctrl+_ undo; Ctrl+G external editor; Ctrl+S stashes the prompt;
~/.claude/keybindings.json.
Suggested direction
- Keep walking history while
history_indexis set and the cursor is on the first (Up) / last (Down) row. - Move thinking toggle off Ctrl+R (e.g. Ctrl+T, which omp uses) and give Ctrl+R to history search.
- Readline semantics for Ctrl+U; undo on Ctrl+_ / Ctrl+Z.
- Footer hint should name the key that actually works in the current state.
- Ctrl+G: open the draft in
$VISUAL/$EDITOR.
- Lingua principale
- Rust
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
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 GotinhaAzul/LocalHarness
-
area: ux bug priority: P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
GotinhaAzul/LocalHarness#198 ·
-
area: tools area: ux enhancement priority: P2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 56/100
GotinhaAzul/LocalHarness#201 ·
-
area: ux bug priority: P2
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
GotinhaAzul/LocalHarness#200 ·
-
area: ux enhancement priority: P2
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
GotinhaAzul/LocalHarness#197 ·
-
area: agent-loop area: ux enhancement priority: P1
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
GotinhaAzul/LocalHarness#196 ·
Tutte le issue di GotinhaAzul/LocalHarness
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
state:needs triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
zed-industries/zed#67561 ·
I maintainer di solito rispondono entro 1 giorno
-
bug has: workaround PR welcome! T: CI/CD
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
chore priority:low ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jdrouet/catapulte#882 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100