pub fn rank(
entries: &[PaletteEntry],
query: &str,
recent: &[CommandId],
applies: impl Fn(&CommandId) -> bool,
) -> Vec<Ranked>Expand description
The palette’s list for a query: the entries that apply, best first.
Without a query, the recent ones first, then by category and title;
with one, by fuzzy score (Category: Title, or the id a little
behind), a recent command winning ties and close calls.