anthropics / anthropics/claude-code
Keyboard focus for the diff/review panel (no way to "enter" it)
- Vorherrschende Sprache
- Python
- Sterne
- 145k
- Forks
- 23.1k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
**Problem:** When a diff/review ("proposed changes") panel is showing, keystrokes always go to the prompt input. There's no way to move keyboard focus into the diff panel, so its navigation keys (`j`/`k`, arrows, `space`/`b`, `g`) never apply unless the panel was opened modally via `/diff`. If the diff is just displayed alongside the prompt, it can't be driven from the keyboard at all — you have to use the mouse.
**Request:** A focus-toggle / cycle-pane keybinding (e.g. `Tab` or `Ctrl+O`) that moves focus between the prompt and the diff panel, exposed as bindable commands in `~/.claude/keybindings.json` (e.g. `app:focusDiffPanel` / `app:focusChat`, or a `app:cyclePane`). Today `keybindings.json` has `DiffDialog` / `DiffPanel` contexts but no focus/cycle command, so it can't be worked around by rebinding.
**Environment:** Claude Code CLI (terminal).
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start with ~/.claude/keybindings.json and the DiffDialog/DiffPanel contexts, then trace how /diff opens the panel and how the prompt currently receives keystrokes. Add a bindable focus or cycle command so focus can move between the prompt and displayed diff panel, and verify that the diff navigation keys work in both panes without modal opening.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Bereich
- cli, developer-experience
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 55/100