pacocoursey / cmdk

Fast, unstyled command menu React component.
https://cmdk.paco.me
MIT License
9.04k stars 259 forks source link

Normalize search value by converting extended Latin to regular Latin #173

Open misha-erm opened 10 months ago

misha-erm commented 10 months ago

Hello,

In my scenario items for commands menu can be added by users and that means they can use their native language. Should cmdk also take this into account when filtering items? (fyi: lodash's method for reference https://lodash.com/docs/4.17.15#deburr )

I know that I can pass my own filter function to cmdk and I would be totally fine with this approach if cmdk exported defult scoring function so I can prepare value and benefit from default scoring function

Thank you in advance