Skip to content

Render help shortcuts with the reader's own modifier labels - #522

Merged
mtaanquist merged 1 commit into
developfrom
fix/platform-aware-docs
Jul 30, 2026
Merged

Render help shortcuts with the reader's own modifier labels#522
mtaanquist merged 1 commit into
developfrom
fix/platform-aware-docs

Conversation

@mtaanquist

Copy link
Copy Markdown
Owner

Follow-up to #520: the /docs articles still showed Ctrl and Alt on a Mac, leaning on a convention line. The docs page now rewrites combo labels (Ctrl+ to Cmd+, Alt+ to Option+) for Apple readers via a new appleShortcutLabels in $lib/keys (unit-tested; only the combo forms are touched, so prose naming the keys stays as written). The per-line "(Cmd on a Mac)" parentheticals across editor, planning, getting-started, and reviewing are gone, and the shortcuts article's intro now says shortcuts are shown for your keyboard.

SSR serves the written PC form; the swap lands on mount, same caveat as every modLabel user.

Verified locally: lint, check, keys unit tests, docs.spec.

🤖 Generated with Claude Code

The articles write shortcuts with the PC labels; the docs page now
swaps Ctrl+ for Cmd+ and Alt+ for Option+ for Apple readers, through
appleShortcutLabels in the keys helper. The per-line '(Cmd on a Mac)'
parentheticals go, and the shortcuts article's convention line says
what the reader actually sees.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mtaanquist
mtaanquist merged commit d440365 into develop Jul 30, 2026
3 checks passed
@mtaanquist
mtaanquist deleted the fix/platform-aware-docs branch July 30, 2026 21:08
@mtaanquist mtaanquist mentioned this pull request Jul 30, 2026
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