Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more control for tree searching #124

Open
willeastcott opened this issue Aug 3, 2021 · 1 comment
Open

Provide more control for tree searching #124

willeastcott opened this issue Aug 3, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@willeastcott
Copy link
Contributor

willeastcott commented Aug 3, 2021

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 willeastcott added the enhancement New feature or request label Aug 3, 2021
@Maksims
Copy link
Contributor

Maksims commented Aug 4, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants