Command palette: word-level search with multi-token cross-column matching

Implement a word-level scoring engine for the command palette that replaces
the previous FZF-based approach. Query tokens are matched against pre-tokenized
words in each column (key, action, category) with exact, prefix, and
edit-distance scoring. Multiple search terms are supported with cross-column
matching — items matching more tokens rank higher. Compound query tokens
containing delimiters (e.g. mouse_selection) are matched as units.

Add comprehensive tests using a Go builder API instead of raw JSON blobs,
covering single-token, multi-token, partial-match, ranking, mouse binding,
and unmapped action scenarios.

Add documentation for the command palette kitten.
This commit is contained in:
Daniel M German
2026-03-22 17:13:13 -07:00
parent e9661f0f3a
commit 6a3fe6ae01
5 changed files with 1189 additions and 256 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 KiB