Skip to main content

frecency_boost

Function frecency_boost 

Source
fn frecency_boost(timestamp: Option<i64>, now_secs: i64) -> u32
Expand description

Recency boost added to nucleo’s fuzzy score so freshly-used commands outrank stale ones at similar match quality. The step values are tuned to nucleo’s natural range (~16-32 for single-char queries): the boost can flip ordering for short queries, but for longer queries – where nucleo scores grow with each matched char – it degrades gracefully into a tiebreaker.