MenuSpec
Defined in: core/src/shared/types.ts:95
What an option declares to appear in OverlayListModel.rows.
Properties
Section titled “Properties”keywords?
Section titled “keywords?”optional keywords: readonly string[];Defined in: core/src/shared/types.ts:105
Extra query terms that never appear on screen — 'h1' for Heading 1.
label: string;Defined in: core/src/shared/types.ts:103
What the row shows, and what the typed query is RANKED against: an exact match first, then a label the query is a prefix of, then a label holding it anywhere — and only then the same three over keywords, because a term the user cannot see must not outrank one they are reading. Declaration order decides inside a band, and decides everything before the first character is typed.
optional meta: string;Defined in: core/src/shared/types.ts:117
SEEDS for the row this entry writes, and both are DATA rather than a callback: the entry
says what the row starts as, and choose is the only thing that writes it. They apply only
where there is nothing to keep — a row that already has text keeps its own body, since a
turn-into must not discard what the user typed.
ONE ROW, so text may not carry the document separator. It becomes the row’s BODY, and the
projection re-parses it: an extra line lands at the depth ITS OWN lead says, which for a seed
is none — so a two-line seed on a NESTED row writes its second line at the document root and
splits the construct across two depths.
optional text: string;Defined in: core/src/shared/types.ts:118