Compose previews — hierarchical tree
devilge_get_compose_previews_treeOrganizes Jetpack Compose @Preview functions into a tree by module, file, and function, grouping multiple annotations as variants, with a summary totals and orphaned previews.
Instructions
Returns every Jetpack Compose @Preview in the project organized as modules → files → functions → variants. Multiple @Preview annotations on the same Composable are grouped as variants of one function. Includes a totals summary by group and an orphans bucket for previews outside any known module.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxFiles | No | Maximum number of .kt files to scan. Defaults to 5000. | |
| moduleFilter | No | Optional path (relative to project root) to restrict the scan, e.g. "modules/feature". |