pcui
pcui copied to clipboard
Provide more control for tree searching
Currently, searching tree items does a fuzzy match.
https://github.com/playcanvas/pcui/blob/master/src/helpers/search.js#L3
Sometimes, it is useful to just search based on exact matches.
Allowing the developer/end-user the ability to select a match type would be useful.
Indeed. I believe better sorting of search results - would do a great job here:
- Exact matches first (case insensitive)
- Partial matches then (case insensitive)
- Fuzzy matches based on string distance then
Also an ability to search by tag, just like for assets: [enemy], [level-1, mob], etc.