-
Notifications
You must be signed in to change notification settings - Fork 62
EAutocomplete: Support multiple highlighted items in search text #8080
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
EAutocomplete: Support multiple highlighted items in search text #8080
Conversation
pmattmann
commented
Sep 2, 2025
⛔ Feature branch deployment currently inactive.If the PR is still open, you can add the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hahaha, I knew the moment you asked this in the core meeting that you are going to solve this :D. Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we want to add a 7.5kb dependency for this feature, but it works!
| if (info) { | ||
| return uFuzzy.highlight( | ||
| item.text, | ||
| info.ranges[0], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean only the first occurrence of each match is highlighted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the library can process multi-line text.
Here, info.ranges[0] means that only the hits of the first line are highlighted.