ヽ◕◡◕✿ノ
ヽ◕◡◕✿ノ
this is fixed in fuzzysort v3
> Am I misunderstanding what this library is supposed to do? yes. https://github.com/farzher/fuzzysort/issues/96#issuecomment-1076422766 i agree with your example but that's just not the use case i guess. not sure if...
no. if it's not a match it won't be returned. but you can simply manually add everything else back into the end of your results.
> Having an empty result for `fuzzysort.go('Value Abc', ['Value', 'Other'], { threshold: -Infinity })` seems incoherent to me yeah i understand, but this is how sublime text works so i'm...
> One option I have done so far is to split on `' '` which does properly match partial words but then highlight functionality is off since it's using different...
oops. you're right. there's 2 issues here. 1. because of performance optimizations, the highlight information is being overwritten by following searches. 2. because of the new way spaces behave in...
you're never searching for `hello my`, you'd need to generate more search permutations than a simple split
that's possible, but a little complicated. this isn't a well supported use case. btw, what is your use case? why do you want this?
> how to add custom weight to each key the readme shows how to do weighted searches. you write a scoreFn that works however you want. ```js let objects =...
this all now just works in fuzzysort v3 ```js let items = [{title: 'sup', description: 'not much', tags: ['funny']}] fuzzysort.go('u', items, { keys: ['title', 'description', obj => obj.tags?.join()], scoreFn: r...