ヽ◕◡◕✿ノ
ヽ◕◡◕✿ノ
Undo Selection is `Ctrl+U` in sublime text
`fuzzysort.highlight(result)` changed to `result.highlight()` the readme shows that. what's confusing?
> Would it be possible to improve the fuzzy search algorithm so it can handle simple typos? no. early versions used to handle a single transpose like in your 2nd...
@offsky did you try uFuzzy? did it work for you? what's your review? lol
`scoreFn` is unnecessary unless you're using `keys`. `scoreFn` is for when you need score information about individual keys. otherwise just remap the score normally `results.forEach(r => r.score *= 2)` i...
what "valid matches" have a score of 0.2? there's not a way to prevent these matches. but you can just write your own filter to remove them based on result.indexes
```js function valid_match(result) { const indexes = result.indexes let sequenceStart = 0 let sequenceLength = 1 for (let i = 1; i < indexes.length; i++) { if (indexes[i] === indexes[i-1]...
> I think there might be a mistake in the code? I see you have `sequenceStart`, but that's not referenced anywhere. lol oops. it's AI generated > This mostly fixed...
just use `keys`. shorter strings are prioritized. so your `title` would automatically be prioritized over your `longDescription` ```js const books = [ {title:'spaghetti and meatballs', longDescription:"a book about food and...