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

Unexpected matching behavior #55

Closed
Kilian opened this issue Oct 21, 2022 · 1 comment
Closed

Unexpected matching behavior #55

Kilian opened this issue Oct 21, 2022 · 1 comment

Comments

@Kilian
Copy link
Contributor

Kilian commented Oct 21, 2022

Reproduction steps:

  1. On https://cmdk.paco.me/ make sure you have the raycast example selected
  2. Type "eee"
  3. See "Manage Extensions" still being visible even though it does not contain the string "eee"
  4. Type "eeee"
  5. See the list is now empty

I would expect input to match sequentially e.g. if there is no "eee" in the label, it should not match. It looks like right now each character is matched individually-but-uniquely, since "manage extensions" contains three non-sequential "e"s.

@pacocoursey
Copy link
Owner

This is expected fuzzy matching behavior from the library used, command-score. You can override the logic by passing the filter prop: https://github.com/pacocoursey/cmdk#command-cmdk-root

@pacocoursey pacocoursey closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants