[codex] add file navigation shortcuts#308
Conversation
Greptile SummaryThis PR adds
Confidence Score: 5/5Safe to merge — the change adds a self-contained navigation feature with no mutations to existing data paths. The new No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Keyboard as useAppKeyboardShortcuts
participant Controller as useReviewController
participant Files as files.ts (findNextFile)
participant UI as Review Pane
User->>Keyboard: Press "," or "."
Keyboard->>Keyboard: Guard: pagerMode? filterFocus? menuOpen?
Keyboard->>Controller: moveToFile(-1 or +1)
Controller->>Files: findNextFile(visibleFiles, selectedFile.id, delta)
Files-->>Controller: nextFile (clamped) or null
Controller->>Controller: "selectFile(nextFile.id, 0, { alignFileHeaderTop: true })"
Controller-->>UI: Scroll view to file header top
Reviews (1): Last reviewed commit: "feat: add file navigation shortcuts" | Re-trigger Greptile |
|
Hey @theimpostor, I appreciate you submitting this, but we had #280 waiting which has a lot of overlap and I chose to merge that. If you feel #280 is missing something please isolate those changes and maybe re-open as a new PR. Closing as done in the meantime. |
Summary
,and.keyboard shortcuts for previous/next file navigation in the visible review stream.Closes #307
Verification
bun run typecheckbun run format:checkbun run lintenv PATH="/Users/shoda/.bun/bin:/opt/homebrew/bin:$PATH" /Users/shoda/.bun/bin/bun test ./src ./packages ./scripts ./test/cli/Users/shoda/.bun/bin/bun test ./test/ptyNote:
test/sessionis not included in the clean local run because this macOS environment resolves BSD/usr/bin/script, which rejects the GNU-stylescript -e -coptions those tests use.