Repository navigation
feat(desktop): list Files changed's keys in a ? sheet and on the Keyboard shortcuts page - #3795
Merged
Merged
Conversation
…oard shortcuts page Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
luke-agent Bot
added a commit
that referenced
this pull request
Oct 19, 2026
Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
…ortcuts-sheet Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
luke-agent
Bot
force-pushed
the
luke/files-changed-shortcuts-sheet
branch
from
October 19, 2026 04:24
1c3ed41 to
a67d82b
Compare
luke-agent Bot
added a commit
that referenced
this pull request
Oct 19, 2026
Adds I to Files changed's shortcut table (Review group) and to its dispatch record, after #3795. Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
9 tasks done
luke-agent Bot
added a commit
that referenced
this pull request
Oct 19, 2026
Viewed's hint now reads V from Files changed's shortcut table (#3795). Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was asked
Files changed (the Pull request tab's diff view) already answers stage-cli's keys, but nothing listed them. This adds stage-cli's
?sheet, and lists the same keys on Settings › Keyboard shortcuts. Both read the one table the handler matches against, so the lists can't drift from the real bindings.What changed
@luke/settings/shortcutsnow holdsFILES_CHANGED_KEY,FILES_CHANGED_SHORTCUTS(a label and a chord per key) andFILES_CHANGED_SHORTCUT_GROUPS, using stage-cli's groups: General, Navigation, Review.filesChangedKeyFor(event)matches a press against that table through the existingshortcutMatches.changes-list.tsxdrops its hand-writtenFILE_KEY/fileKeyOfletter checks. What each key does is a record that must cover every key in the table (satisfies Record<FilesChangedKey, …>), so a key added to the table won't build until it's handled.FOLD_CHORD(the fold buttons' hints) now reads from the table too.;and/are read by where they sit on the keyboard. A newplacedflag onSHORTCUT_KEY.SEMICOLONandSLASHmakes a plain chord (no ⌘) matchevent.code, because Shift turns;into:and/into?. This keeps the old by-position reading of;and⇧;. ⌘/ (Keyboard shortcuts) still matches by character, as the menu bar does. Also addsSHORTCUT_KEY.V.?(⇧/) sheet.files-changed-keys.tsxis a@luke/uiDialogat wide size. Each group is aSettingsSectionwithSettingsRows at list density, and each chord is drawn by the app'sShortcut, exactly as the Keyboard shortcuts page draws them. Escape, Done, a click on the dimmed window, or?again closes it, and focus goes back into the view.?works. Like the other plain keys, only while focus is inside Files changed and you're not typing in a field. No app command uses plain?.Coordination
FILES_CHANGED_KEYrow in the Review group, plus a line in the record inchanges-list.tsx.Tests
agent-changes-tab.test.ts:?opens a sheet listing each group, label and drawn chord, and Escape or?again closes it;?does nothing outside the view (with the window keymap mounted) or when typed into the tree's search.desktop-settings.test.ts: Keyboard shortcuts lists the Files changed group with its chords, and search finds a row of it.shortcuts.test.ts: every Files changed key appears in exactly one group of the sheet.Checks
The per-package fallback, because
pnpm check:affectedran out of memory in this sandbox (on desktop tsc and service vitest):./scripts/oxlint.sh, biome,pnpm knip,pnpm discarded-effect,./scripts/repository-checks.sh: passedapps/desktopnode scripts/build.mjs: bundle budget passedThis is desktop/panel only, so no Preview run.
Screenshots
Rendered from this branch's built
styles.css(Linux fonts).?sheetMade with Luke