anthropics / anthropics/claude-code
Keyboard focus for the diff/review panel (no way to "enter" it)
- Ngôn ngữ chính
- Python
- Star
- 145k
- Fork
- 23.1k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
**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).
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- cli, developer-experience
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100