Skip to main content

Module folder_tree

Module folder_tree 

Source
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_folders for “expand all” behavior.