Repository navigation
fix(desktop): name the moves and lead with the palette's keys in Keyboard Shortcuts - #372
Merged
bketelsen merged 1 commit intoNov 23, 2026
Conversation
…oard Shortcuts The Keyboard Shortcuts dialog showed the moves by their command ids (pageDown, escape, nextPane, ...). Each move now has a name, from docs/specs/ui.md's Keyboard map; Space is Toggle Completion in Tasks. The palette's keys were in the list, in frostui's View group, the last one, below the foot of the dialog, which cannot scroll in frostui v0.10.0. The window now adds the palette's command as its own, in the App group, so Ctrl+K and Ctrl+Shift+P head the dialog. Its keys are unchanged. Fixes #359 Refs #356
bketelsen
approved these changes
Nov 23, 2026
bketelsen
deleted the
irulan/frostmail-keyboard-shortcuts-dialog-t311-pev266tctl3ek3e2
branch
November 23, 2026 01:29
This was referenced Nov 23, 2026
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.
Summary
Two defects of the desktop app's Keyboard Shortcuts dialog (
showShortcuts, which showsfrostui.ShortcutsBody(w.table.Shortcuts())):pageDown,pageUp,escape,nextPane,previousPaneandopen.commands.Tablenow names every move withMoveTitle, and Space is Toggle Completion in Tasks (docs/specs/pim-ui.md, Tasks behavior). The names are indocs/specs/ui.md's Keyboard map, in a new table.syncTable), with Group App, so "Command Palette, Ctrl+K" and "Command Palette, Ctrl+Shift+P" are the dialog's first two lines. The command and its keys come fromPalette.Command()unchanged; only the group changes. The table keeps an app's own command, so the shell'sprovideleaves it as it is.Fixes #359
Refs #356
What waits for frostui: the second part of #356 is that the dialog does not fit or scroll on a 1280×800 screen. That is frostui's
Infodialog: frostyard/frostui#51 (merged as 807d0a4) makes Info bodies scroll, but no frostui tag contains it yet (the newest is v0.10.0, the version this repository requires). #356 stays open until a frostui release contains it andgo.modis bumped to it. Until then, the Edit, Go to and View groups still sit below the dialog's foot.Risk tier
Risk tier: 2 — a behaviour change in the desktop app's UI: the dialog's names and the order of its entries. No key binding changes. The PR touches no path of
.github/risk-paths.json(internal/desktop/commands/,internal/desktop/mainwin/{modules.go,mainwin_test.go,shortcuts_internal_test.go},docs/specs/ui.md).Docs housekeeping
docs/specs/ui.md, Keyboard map: what the dialog lists, the palette's keys at its head, and the names of the moves.Verification
make checkgreen (host), withBASE=origin/main; golangci-lint: 0 issues (Linux and Windows).go test -race ./internal/desktop/commands/ ./internal/desktop/mainwin/green.make ci's nsl targets (ui-check, the desktop builds) did not run in this session; CI runs them. No file underapp/changes.internal/desktop/commands/palette.goandinternal/desktop/mainwin/modules.goreverted and the tests kept, all 3 new tests fail.Command:
git stash push internal/desktop/commands/palette.go internal/desktop/mainwin/modules.go && go test ./internal/desktop/commands/ ./internal/desktop/mainwin/ -run 'TestEveryShortcutHasATitle|TestShortcutsListThePaletteFirst|TestShortcutsDialogShowsThePaletteKeys' -count=1The tests:
TestEveryShortcutHasATitle(commands): in every module, no entry of the shortcuts list has an empty title or a command id as its title, and the 6 entries of Keyboard Shortcuts dialog: 6 entries show raw command ids, and the list does not fit or scroll #356 and Tasks' Space have their names.TestShortcutsListThePaletteFirst(mainwin, internal): the window's list starts with Command Palette, Ctrl K and Ctrl Shift P, in the App group, and lists no other Command Palette entry.TestShortcutsDialogShowsThePaletteKeys(mainwin): opens the dialog the user's way (Ctrl+Shift+P, "keyboard", Enter) in a 1280×800 window. The Command Palette row must have a height and end inside the window.Revert output (abridged; the first test reports every raw id in each of the 4 modules):