Skip to main content

Module router

Module router 

Source
Expand description

User-level project router: named projects can live on another checkout.

Layout::resolve is still the process default. A file at $VISSUE_CONFIG or $XDG_CONFIG_HOME/vissue/config.toml maps a project name onto a {root, prefix} plus an on-disk directory. A named route wins over --root / VISSUE_ROOT, because callers that inject a vault root still need those names to land in the routed file. VISSUE_NO_ROUTE or a missing config file restores single-layout behaviour.

Structs§

ProjectRef
One project as the router names it: the layout to read, the directory under that layout’s prefix, and the route key the caller used.
RouteHit
A heading found by id, together with the layout that holds it.
Router
User-level map of project name to layout, plus the process default.