Count a typed hyphen as matching a space #29
Loading…
Reference in a new issue
No description provided.
Delete branch "FZT2-9-hyphen-matches-space"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Work package: FZT2-9
Typing
string-labin the at menu didn't find thestring labentry: 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 longif-shell -F -t …descriptions happened to hold the letters in order filled the top rows instead.Changed:
FuzzyMatchtreats a hyphen and a space as the same character (runesMatch).string-labnow matchesstring labat the name tier, at the same score as an exactstring-lab.Unchanged: tier order, the whitespace split into AND terms (typing
string labalready matchedstring-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