Kbar and wildcard search? #767
Unanswered
dariusz-wozniak
asked this question in
Q&A
Replies: 1 comment
-
Kbar uses fuse.js internally for the searching - https://github.com/timc1/kbar/blob/main/src/useMatches.tsx#L12-L29 Fuse.js does approximate string match. I noticed that the default settings don't work quite well for long strings. They get penalize by the location distance and Field-length Norm. You can try modifying one of the entries in fuse demo to use your blog's title - using "regi" as a search term ranks very low. The best solution would be for kbar to improve their settings or expose an option to customize fuse.js parameters. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a problem with the wildcard search:
Example (reproducible on [my blog]):
Main window:
Typing
Autom
yields a result [OK]:While typing
regi
(as for register) does not yield any results [NOT OK]:How can I make
register
to find the proper page?Beta Was this translation helpful? Give feedback.
All reactions