Repository navigation
guides: the guides are a tree, their chapters folded under them - #619
Merged
Merged
Conversation
The guides view drew each guide and chapter as a padded button, which took the sidebar's height for two guides. It is now the app's tree, as the file tree and settings draw it: a guide is a branch with its glyph, title and length, its chapters folded under it, each a row with a play glyph and where it starts. The first chapter is the start. A guide with no chapters is a row of its own. The guide playing has its glyph lit. Part of fizzyedit/plans#30 (step 2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks done
foxnne
added a commit
that referenced
this pull request
Oct 19, 2026
Part of fizzyedit/plans#30. Fixes the tree from #619. ## What changes `TreeWidget`'s branch is drawn the way it is asked to be each frame: when the `.expanded` it's given differs from its own state, it toggles to match. The settings and keybind trees keep each branch's open state themselves and pass that back. The guides view passed "open if it's the first guide" every frame, so: - the first guide reopened the moment it was folded; - the last guide, once unfolded, folded and unfolded again without end. This was the jitter. The view now remembers each guide as the person left it, keyed by a hash of its name. A guide never touched is open if it's the first. ## SDK impact - [x] None ## Verified - [x] Web, in the browser pane: the tour folds and stays folded; the markdown guide unfolds and stays still, with two screenshots a second apart identical. - [x] macOS: `zig build`, `zig build check-web`, `scripts/check-fmt.sh`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Part of fizzyedit/plans#30 (step 2, a follow-up to #613).
What changes
The guides view drew each guide and chapter as a padded full-width button, so two guides took most of the sidebar's height. Now it's the app's tree (
core.widgets.TreeWidget), drawn the way the file tree and settings draw theirs:The time is still laid out before the title, so a long title is cut short rather than the time.
SDK impact
Verified
zig build web:zig build,zig build check-web,zig build check-tests-reached,scripts/check-fmt.sh.🤖 Generated with Claude Code