Repository navigation
feat(nsgo): list a vault's notes as a tree - #280
Merged
Merged
Conversation
The NSGo client's notes are NSGo's tree: a folder holds its folders, then its notes, and opens and closes. They were a sidebar with a section for each folder's path, which showed no folder inside another. A press of a note's row opens it, and the open note's row is the chosen one. The tours' vault gains a note in a folder inside a folder.
frostyard-machines
approved these changes
Nov 25, 2026
7 tasks done
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 NSGo client's notes are a tree, in place of a sidebar with a section for each folder's path (frostyard/frostmail's plan 0016, Phase 5, which starts here at the owner's word).
cmd/frostnotes-nsgo/tree.go): NSGo'sui.Tree. A folder holds its folders, by name, then its notes, and opens and closes by its chevron or a double press. The old sidebar showed no folder inside another:Plants/Herbswas a section of its own besidePlants.NavLabel, with a folder's or a note's icon, on the kit's soft rows, as FrostMail's navigation draws them.The tours' vault gains a note in a folder inside a folder, so the kept pictures show the nesting.
Not in this change: the editor's row of controls, which the plan moves to the shell's toolbar; the client's own helpers that the kit's parts replace.
Risk tier
Risk tier: 2 — a change of how the notes are listed and chosen. How a note opens, saves and is left (
open,leave) is the code it was; the tree callsopenas the sidebar did.Docs housekeeping
docs/design/app.mddescribes the tree and the suite; no new docVerification
make checkgreen (host): exit 0, golangci-lint 0 issuesmake nsgo-check, inmake verify: the suite headless, 8 workflows; 2 are new (TestBuildTreeNestsFoldersBeforeNotes,TestNotesTreeNestsFoldsAndOpens)make nsgo-liveon Xvfb's X11: 17 passed, 0 failed, 0 skippedmake nsgo-pictures: the 22 kept pictures; 18 changed