Repository navigation
feat(nsgo): keep the window and filter the notes tree - #285
Merged
Merged
Conversation
The device keeps the window's size, its place where the platform reports one, and the navigation's width, and a start shows the window as it was left. A field over the notes tree leaves the notes whose title or path holds its words, and mod+F puts the keyboard in it.
frostyard-machines
approved these changes
Nov 25, 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
The 2 things the NSGo client had not done of the kit's standard for an app (frostui's
docs/specs/workspaceui.md, rules 7 and 8; frostyard/frostmail's plan 0016, Phase 5).cmd/frostnotes-nsgo/window.go), in the client's storage on the device: its size, its place where the platform reports one (Linux reports none), and the navigation's width. A start shows the window as it was left. A maximized window's size is not kept, nor a size under 480 by 360, and the window does not go under that size (nsgo.WindowConstraints). A browser's window is not kept.tree.go): the kit'sSearchField, "Filter notes". It leaves the notes whose title or path holds every word, inside their folders, all open, and says so when none does. mod+F puts the keyboard in it, from the editor too. It is also what stands over the navigation's rows in FrostMail (its search) and PocketGo (its filter), which the comparison of the 3 windows found missing here.Not done: the notes tree's own width is not kept. The kit's
FileExplorerreports no change of it.Risk tier
Risk tier: 2 — a change of the client's behaviour: 2 keys of the client's storage (
window,pane-widths), and a filter of what the tree shows. No path of.github/risk-paths.jsonis touched. The filter narrows the tree alone: the palette, the vault search and what a note's row opens are the code they were.Docs housekeeping
docs/design/app.mddescribes the kept window, the filter and the keyVerification
make checkgreen (host): exit 0make nsgo-check, inmake verify: the suite headless passes, with 3 new tests:TestWindowSizeIsKept(a resize is kept; 300 by 200 is not),TestKeptWindowAndPanesShowAtStart(the app asks for its kept window, the navigation is its kept 300 wide, and a drag of its edge is kept),TestFilterNarrowsTheTree(a title's and a folder's words, no match, and mod+F from the editor)make nsgo-liveon Xvfb's X11: 26 passed, 0 failed, 0 skipped. There the kept window is checked by the real window's size, 1000 by 720make nsgo-pictures: 17 of the 25 kept pictures changed (the field over the tree). I looked at 1, a note in source