Repository navigation
Document how hotkeys are laid out - #17408
Conversation
[Low impact] The PR reaches the hotkey manual and contributor review guidance. Safe to merge, with a non-blocking clarification needed about existing shortcut exceptions. Findings
SummaryDocuments the intended hotkey layout and points contributors to it.
Reviews (1) · Last reviewed commit: "Document how hotkeys are laid out" · Reviewed by Greptile |
| 2. Don't move an existing hotkey to make room. Find a free key on the right plane. | ||
| 3. Only use `Alt` for a variant of the hotkey without it. | ||
|
|
||
| A few hotkeys break these rules because they're convenient. `Shift` with an arrow or `Tab` moves or reverses instead of opening an app, and `Print`, the media keys, `Alt + Tab`, and `Ctrl + Alt + Del` work the way they do everywhere else. They're exceptions, not patterns to copy. |
There was a problem hiding this comment.
Exceptions miss existing shortcuts
The exception list leaves the new rules at odds with existing defaults. Super + Ctrl + D opens Display, while adding Alt opens Calendar—not a variant of Display. Likewise, Super + Shift + 1–0 moves windows rather than opening apps. Readers cannot tell which existing shortcuts follow the rules reviewers are now asked to enforce.
Describe the planes as rules for new bindings, or expand the exceptions to cover existing shortcuts. No existing keys need to move.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
(cherry picked from commit 09fa23e)
Hotkeys were starting to blur together because the planes they follow only lived in our heads. This writes them down in the manual so we have something to point at when adding bindings and in review.
manual/07-hotkeys.mdgets a "How hotkeys are laid out" section:Superis the system,Super + Shiftis apps,Super + Ctrlis panels and system menus,Super + Ctrl + Altis quick actions and notices.Altis always a variant of the same binding, never something unrelated, and an existing binding never moves to make room for a new one.AGENTS.mdpoints agents at that section and asks them to hold new bindings to it in review.Came out of the discussion on #8827.