Expand description
Wire the dashboard subsystem into the editor at boot (DB.2, DB.5, DB.6).
Called from the host’s Phase-B install list (editor_boot.rs) — the
only host touch-point the mode-ownership acid test allows.
install registers five things, all owned by this crate:
dashboard-mode(the major mode) into the mode registry;- the
:dashboardex-command, whoseapplyreturns the lifecycleEffect::OpenDashboardthe host applies (buffer creation mutates&mut Editor, so the applier is the sanctioned host boundary — same shape as:messages/:diff); - the built-in
DashboardRegistryas a service, so the host’sdo_open_dashboardcan compose the page; - (DB.5) the mode-owned startup trigger: a one-shot subscription to
lattice_mode::Startupthat emits the sameEffect::OpenDashboardwhen the editor booted with no file argument anddashboard.enabled; - (DB.6) the mode-owned recompose trigger: a long-lived subscription to
Event::OptionChangedthat re-emitsEffect::OpenDashboard— this time gated on the dashboard already being open — wheneverdashboard.sections,dashboard.source, orui.nerd_fontschanges.
Functions§
- install
- Install the dashboard subsystem: mode +
:dashboardcommand + the built-in section registry service.