Skip to content

feat(nsgo): make Quick open a palette and put its field in the toolbar - #284

Merged
bketelsen merged 2 commits into
mainfrom
feat/nsgo-palette
Nov 25, 2026
Merged

bketelsen merged 2 commits into
mainfrom
feat/nsgo-palette

Conversation

@bketelsen

@bketelsen bketelsen commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The 3 apps' main windows, set side by side (frostyard/frostmail's plan 0016, Phase 5), showed 1 difference of their toolbars that is no app's own layout: FrostMail and PocketGo have the palette as a field, "Search or run a command" with Ctrl+K, and Frostnotes had none. The owner asked for it.

  • The field is in the toolbar, between the note's actions and the More menu, and opens the palette, as mod+K and mod+O do.
  • The palette is Quick open with the app's commands under the vault's notes. A note's title or path opens it, as before; a command's name runs it. The commands are New note, Save, Rename or move note, Move to trash, Search vault, Restore deleted note, Refresh vaults and notes, the editor's 2 modes, and Settings on a desktop. One with nothing to act on, as the trash with no note open, is left out.
  • The editor's 2 modes are a segmented control of 2 icons, named Source and Live preview by their tooltips and to assistive technology. They were the 2 words, which with the field left the title under 140 wide in the app's own window of 1160.
  • Quick open's icon button leaves the toolbar: the field takes its place. Search vault keeps its button, with Quick open's old icon.
  • A pane under 760 wide (it was 660) keeps New note and one menu, which holds the palette under the same name.

Names that changed (the tests' handles): the toolbar's and the menu's Quick open is Search or run a command. Find note, the palette's field, is as it was.

This branch is on #283's (the kit at v0.4.0), which is open: until that merges, this pull request shows its commit too.

Risk tier

Risk tier: 2 — a change of the toolbar and of what the palette lists. No path of .github/risk-paths.json is touched. A command runs the function its button runs (tool.run), so no action has a second way to do it.

Docs housekeeping

  • Cross-links: docs/design/app.md describes the toolbar, the palette and the pictures; docs/development.md names the field

Verification

  • make check green (host): exit 0
  • make nsgo-check, in make verify: the suite headless passes, with 1 new test, TestPaletteFindsNotesAndRunsCommands (the field and mod+K open it; a note's name opens the note; "trash" asks about the open note; "live preview" changes the mode; "settings" shows Settings; with no note open the trash is not offered)
  • make nsgo-live on Xvfb's X11: 23 passed, 0 failed, 0 skipped
  • make nsgo-pictures: 25 kept pictures; 17 changed and palette-commands is new. I looked at 3: a note in source, the palette with no query, and the palette with a command's query
  • The web build under Lodge in a browser (make nsgo-lodge-evidence IN_NSL='sh -c', on the host, headless Firefox, the build stamped with this commit): the 4 TestNSGoLodge* tests passed once, with no edit of the tests. [aria-label="Live preview"] still finds the mode's tab, and its press shows the preview; the tab's other attributes were not read
  • Not run: a person's mouse on a real desktop; Windows

The editor's inset takes the kit's spacing, so TestNoLiteralLooks allows
no padding written as a number. 1 text size is left, a Markdown
heading's in live preview.
The toolbar holds the palette as a field, "Search or run a command"
with its keys, as FrostMail's and PocketGo's do. The palette lists the
vault's notes and then the app's commands, and leaves out a command with
nothing to act on. The editor's 2 modes are icons named by tooltips, so
that the field has its room.
@github-actions github-actions Bot added the level:L3 Skim label Nov 25, 2026
@bketelsen
bketelsen dismissed frostyard-machines’s stale review November 25, 2026 01:24

The merge-base changed after approval.

@bketelsen
bketelsen merged commit f039691 into main Nov 25, 2026
16 checks passed
@bketelsen
bketelsen deleted the feat/nsgo-palette branch November 25, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants