Count a typed hyphen as matching a space #29

Merged
merge-queue merged 1 commit from FZT2-9-hyphen-matches-space into main 2026-11-29 13:25:15 -08:00
Owner

Work package: FZT2-9

Typing string-lab in the at menu didn't find the string lab entry: fzt splits the query only on whitespace, so the hyphen had to match a literal hyphen in the name or description, and neither had one. tmux bindings whose long if-shell -F -t … descriptions happened to hold the letters in order filled the top rows instead.

Changed: FuzzyMatch treats a hyphen and a space as the same character (runesMatch). string-lab now matches string lab at the name tier, at the same score as an exact string-lab.

Unchanged: tier order, the whitespace split into AND terms (typing string lab already matched string-lab), word-boundary bonuses, tags and ancestor matching. Underscore isn't part of the equivalence.

Tested: new core/scorer_test.go; go test ./... in fzt-terminal and fzt-automate against this checkout through a replace, both pass.

🤖 Generated with Claude Code

Work package: [FZT2-9](https://openproject.home.romaine.life/wp/FZT2-9) Typing `string-lab` in the at menu didn't find the `string lab` entry: fzt splits the query only on whitespace, so the hyphen had to match a literal hyphen in the name or description, and neither had one. tmux bindings whose long `if-shell -F -t …` descriptions happened to hold the letters in order filled the top rows instead. **Changed:** `FuzzyMatch` treats a hyphen and a space as the same character (`runesMatch`). `string-lab` now matches `string lab` at the name tier, at the same score as an exact `string-lab`. **Unchanged:** tier order, the whitespace split into AND terms (typing `string lab` already matched `string-lab`), word-boundary bonuses, tags and ancestor matching. Underscore isn't part of the equivalence. **Tested:** new `core/scorer_test.go`; `go test ./...` in fzt-terminal and fzt-automate against this checkout through a replace, both pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Count a typed hyphen as matching a space
All checks were successful
Suite release / deliver (pull_request) Has been skipped
Suite default / scope (pull_request) Successful in 7s
Suite release / publish (pull_request) Has been skipped
Suite release / check-package (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / finalize (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / home-sync (push) Has been skipped
Suite release / deliver (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite go / scope (pull_request) Successful in 7s
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / scope (pull_request) Successful in 7s
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / reused-checks (pull_request) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
Suite go / check-test-linux (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite release / home-sync (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 14s
Suite default / reused-checks (pull_request) Successful in 14s
Suite go / check-format (pull_request) Successful in 15s
Suite go / check-test-windows (pull_request) Successful in 1m33s
Suite go / reused-checks (pull_request) Successful in 16s
merge-queue landed on main
483c771ca5
The at menu's 'string lab' entry dropped out of the results when
'string-lab' was typed: the query's hyphen had to match a literal hyphen,
and menu names use either style. FuzzyMatch now treats hyphen and space
as the same character, scored as an exact match. FZT2-9.
merge-queue deleted branch FZT2-9-hyphen-matches-space 2026-11-29 13:25:15 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/fzt!29
No description provided.