anthropics / anthropics/claude-code

Keyboard focus for the diff/review panel (no way to "enter" it)

未關閉
#92,943 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:a11y area:tui enhancement
主要語言
Python
星號
145k
分支
23.1k
PR 合併指標
PR 指標待擷取

描述

**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).

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

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.

由索引模型根據 Issue 內容生成。

評估

領域
cli, developer-experience
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
活躍
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。