zlaunch
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 = true

Scoring Bonuses

OptionDefaultDescription
exact_match_bonus100000Bonus for exact name match
prefix_match_bonus50000Bonus for matching start of name
word_prefix_bonus25000Bonus for matching start of a word
contiguity_bonus10000Bonus for consecutive character matches

Higher values make that match type rank better in results.

Penalties and Multipliers

OptionDefaultDescription
description_penalty0.3Score multiplier for description-only matches
action_score_multiplier0.8Score multiplier for action items
submenu_score_multiplier0.9Score multiplier for submenu items

Lower values demote those item types in results.

Best Match Promotion

[fuzzy_match]
show_best_match = true  # default

When 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.5

Actions will rank lower unless you specifically search for them.

On this page