Expand description
Folder tree builder for the sidebar.
Takes a flat list of pages and produces a flattened depth-annotated tree
suitable for rendering in a single ListView. Pure engine code — no Qt.
Structs§
- TreeRow
- A single row in the flattened tree output.
Functions§
- build_
tree - Build a flattened tree from a list of pages.
- collect_
all_ folders - Collect all unique folder paths from a page list.
Used to populate
expanded_foldersfor “expand all” behavior.