pcui icon indicating copy to clipboard operation
pcui copied to clipboard

Provide more control for tree searching

Open willeastcott opened this issue 4 years ago • 1 comments

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.

willeastcott avatar Aug 03 '21 22:08 willeastcott

Indeed. I believe better sorting of search results - would do a great job here:

  1. Exact matches first (case insensitive)
  2. Partial matches then (case insensitive)
  3. Fuzzy matches based on string distance then

Also an ability to search by tag, just like for assets: [enemy], [level-1, mob], etc.

Maksims avatar Aug 04 '21 07:08 Maksims