Closed xypnox closed 2 months ago
Do you have a specific use case in mind? I try to keep solid select opinionated but extensible so cautious in adding more "builtin". Would be good to see an example to play with.
A few cases come to my mind,
Sorry for the late reply.
I think it would be useful, but rather than increase the core size of this library I would recommend in your case to integrate a dedicated fuzzy search/sort library. So maybe this is more about providing a more composable way to add own search sort function to the createOptions
helpers 🤔
Release 0.15.0 has now been published which makes this easier, though does not yet build in a multi-field fuzzySort. However, you can check out the new example on the website that shows one approach to do this: https://solid-select.com/?example=Filterable%2520%28Custom%29
In the usual scenarios, having a single key to sort the list of data is fine, however, it might be useful to have an array of keys that can be used to match for the fuzzy finder and the higher match score will be used.