Skip to content

docs: remove unavailable diff shortcuts - #20974

Merged
OrcaWin merged 1 commit into
mainfrom
OrcaWin/bug-diff-viewer-docs-list-s-n-p-j-k-c-shortcuts
Sep 16, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
OrcaWin/bug-diff-viewer-docs-list-s-n-p-j-k-c-shortcuts

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Sep 16, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 0 0 0 0
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4

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.

@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: a8203a2d-41c3-4fb8-adc2-9147738b2143

📥 Commits

Reviewing files that changed from the base of the PR and between f78483e and 40a9f98.

📒 Files selected for processing (4)
  • docs/site/content/docs/editing/monaco.mdx
  • docs/site/content/docs/recipes/review-ai-diff.mdx
  • docs/site/content/docs/review/commit-push.mdx
  • docs/site/content/docs/review/diff-viewer.mdx

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

Updated 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 F7 and Shift+F7 for navigating changes.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 40a9f

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)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the main change, references issue #20865, and lists validation commands. It does not include most required template sections, including ELI5, What Changed, Why, Visual Proof, … 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 val…
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: removing unavailable diff shortcuts from the documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the main change, references issue #20865, and lists validation commands. It does not include most required template sections, including ELI5, What Changed, Why, Visual Proof, Testing details, Review, Notes, and Checklist.

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.

  • Fix all pre-merge checks with AI

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — the fix is correct but misses one page with the same stale shortcut.

Reviewed changes

  • review/diff-viewer.mdx — drops the j/k, n/p, s, and c shortcut bullets (keeping F7/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 the j/k file-walk and c comment shortcuts; now names Annotate AI Diff.
  • editing/monaco.mdx — drops the "Same shortcuts as the Diff viewer — n/p to walk hunks, s to 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.mdx no longer links to /docs/review/annotate-ai-diff — the removed c bullet 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.

Pullfrog  | Fix it ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@OrcaWin
OrcaWin merged commit 16ac901 into main Sep 16, 2026
25 checks passed
ivanvykopal pushed a commit to ivanvykopal/orca that referenced this pull request Sep 20, 2026
Co-authored-by: m4air <m4air@Mac.localdomain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant