Welcome to Ctxt

docs/examples/tree_menu
helper_tableindexmenureturn_pathstyleview
data/
scan_allscan_menuurl_cols
selected/
dirfile

Worked example: docu tree menu + md viewer

The basic-usage reference: one dirscanner array drives menu, active state, and content — everything in helper columns wherever possible; Includer only where cross-row state is unavoidable (section headers).

Why helper columns: every derived value lands as a column in the array — switch on ArrayViewer and you SEE the whole computation per row. Includer rows are invisible to that inspection, so they are reserved for the one thing columns cannot do: remember state across rows.

how

TechniqueWhere
helper columns via mkColcolor, item
deliberate write-back (mkCol without id)columns land in docuTree for the Includer
per-row gating / computed targetkind==dir vs kind==file item blocks
one array, many consumersmenu links, active state, title, content render
Includer only for cross-row stateheader interleaving on root change
accumulator + self-resetlast_root
`!=` change detectionheader + state blocks fire together
depth control + cut-branch rowsmax_level:2, kind:dir
debug switchcommented ArrayViewer over the same array

Route / active-state notes

url_part_0=docu, url_part_1=md, url_part_2={i}.

scan in the same request, always consistent — but links are not durable across file adds/removes. Durable variant: route on `{tree}/{filename}`.

its index.md?) is an open decision.