Skip to main content

rows

Function rows 

Source
pub fn rows(
    query: &str,
    commands: &[Offer<'_>],
    sources: Sources<'_>,
) -> Vec<Row>
Expand description

The rows a query yields: every available command on an empty query (registry order), otherwise commands, expand <block> entries for the current level, find <block> entries for the whole document and rev entries for the log, scored against label + name and ranked best-first (ties keep registry order).

Ranking picks which rows survive; Source decides the order they are listed in. Grouping after the cut rather than before is what keeps the two from fighting: the results are the same twelve either way, and no group can crowd another out of the list.