Configuration
Fuzzy Matching
Tune fuzzy search scoring behavior
zlaunch uses fuzzy matching to find items. Tune the scoring algorithm in your config:
[fuzzy_match]
exact_match_bonus = 100000
prefix_match_bonus = 50000
word_prefix_bonus = 25000
contiguity_bonus = 10000
description_penalty = 0.3
action_score_multiplier = 0.8
submenu_score_multiplier = 0.9
show_best_match = trueScoring Bonuses
| Option | Default | Description |
|---|---|---|
exact_match_bonus | 100000 | Bonus for exact name match |
prefix_match_bonus | 50000 | Bonus for matching start of name |
word_prefix_bonus | 25000 | Bonus for matching start of a word |
contiguity_bonus | 10000 | Bonus for consecutive character matches |
Higher values make that match type rank better in results.
Penalties and Multipliers
| Option | Default | Description |
|---|---|---|
description_penalty | 0.3 | Score multiplier for description-only matches |
action_score_multiplier | 0.8 | Score multiplier for action items |
submenu_score_multiplier | 0.9 | Score multiplier for submenu items |
Lower values demote those item types in results.
Best Match Promotion
[fuzzy_match]
show_best_match = true # defaultWhen enabled, the highest-scoring item is promoted to the top regardless of category ordering.
Examples
[fuzzy_match]
exact_match_bonus = 200000
prefix_match_bonus = 100000
show_best_match = true[fuzzy_match]
action_score_multiplier = 0.5Actions will rank lower unless you specifically search for them.