Repository navigation
docs: remove unavailable diff shortcuts - #20974
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughUpdated review documentation to describe file-level staging from the Source Control panel. Removed references to hunk navigation, hunk staging, and obsolete diff viewer shortcuts. Updated the AI diff review steps to use Annotate AI Diff for comments. Retained Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This documentation-only update aligns the review workflow with the supported staging and annotation actions and is ready to merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the main change, references issue Resolution Complete the required description sections. Add the ELI5, What Changed, Why, Visual Proof (or N/A with a reason), Testing, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections. Keep the issue reference and validation results.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
ℹ️ No critical issues — the fix is correct but misses one page with the same stale shortcut.
Reviewed changes
review/diff-viewer.mdx— drops thej/k,n/p,s, andcshortcut bullets (keepingF7/Shift+F7), and replaces the "Staging by hunk or line" feature bullet with "File staging from the Source Control panel".review/commit-push.mdx— "Stage changes by hunk or by file from the diff" becomes "Stage changed files from the Source Control panel".recipes/review-ai-diff.mdx— removes thej/kfile-walk andccomment shortcuts; now names Annotate AI Diff.editing/monaco.mdx— drops the "Same shortcuts as the Diff viewer —n/pto walk hunks,sto stage" sentence.
The removals match the app: the only diff-related defaults are editor.previousChange (Shift+F7), editor.nextChange (F7), and editor.addReviewNote (Mod+Shift+A) in src/shared/keybindings/definitions-core-3.ts:91-118, and there is no hunk-staging code on main.
ℹ️ Annotate AI Diff still advertises a c shortcut that does not exist
docs/site/content/docs/review/annotate-ai-diff.mdx:17 still reads "Click it (or press c with the cursor on the line)." — the same non-existent c binding this PR removed from diff-viewer.mdx and review-ai-diff.mdx. It is not in the diff, so it cannot be anchored inline, but leaving it contradicts the PR's stated goal (Fixes #20865) and the recipe page now steers readers to this page to leave comments.
Technical details
# Annotate AI Diff page still lists `c`
## Affected sites
- `docs/site/content/docs/review/annotate-ai-diff.mdx:17` — "Click it (or press `c` with the cursor on the line)."
## Required outcome
- The page should not instruct users to press a shortcut that does nothing. Either drop the parenthetical and rely on the hover **+** gutter control, or state the real default: `Add Review Note`, `Mod+Shift+A` (`⌘⇧A` on macOS, `Ctrl+Shift+A` on Windows/Linux).
## Evidence
- `src/shared/keybindings/definitions-core-3.ts:110-118` defines `editor.addReviewNote` with `defaultBindings: platformBindings(['Mod+Shift+A'])` — no `c`.
- No bare `c` key handler exists in `src/renderer/src/components/diff-comments/` or the editor annotation paths; the composer is opened by `installEditorAddReviewNoteShortcut`.ℹ️ Nitpicks
diff-viewer.mdxno longer links to/docs/review/annotate-ai-diff— the removedcbullet was its only reference to the annotate page. Consider adding it to a "Next steps" list so the review feature is still discoverable from the diff-viewer page.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
Co-authored-by: m4air <m4air@Mac.localdomain>

Removes the unavailable diff-viewer shortcuts from the published docs and corrects related hunk-staging guidance.\n\nFixes #20865\n\nValidation: pnpm --ignore-workspace test, pnpm --ignore-workspace lint, and pnpm --ignore-workspace build in docs/site.