-
-
Notifications
You must be signed in to change notification settings - Fork 604
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
[ExtFilter] Fuzzy matched title segment is not highlighted #1051
Labels
Comments
This is currently not supported. If you can suggest some code/pull request, please let me know. |
stagefright5
added a commit
to stagefright5/fancytree
that referenced
this issue
Dec 25, 2020
Use regex capture group to compute the indices of the matching character and then highlight them. closes mar10#1051
Merged
mar10
added a commit
that referenced
this issue
Dec 27, 2020
* Changes to pkg and pkg lock files after `npm i` * fix (ext-filter): escape regex for fuzzy filter Escaping the `filter` directly will not work because, it gets further split into individual characters. So, escape each character after splitting closes #700 * fix (ext-filter): Highlight not working for fuzzy matched chars Use regex capture group to compute the indices of the matching character and then highlight them. closes #1051 * playground for ext-filter * add unit tests for the fuzzy match highlight fix * simpler condition and comments * filter test the equality of filter and highlighted chars * cache exotic char regex in filter cb's closure * cache exotic char only if `escapeTitles` is truthy * Update CHANGELOG.md Co-authored-by: Martin Wendt <github@wwwendt.de>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When filter is applied with
fuzzy: true
, the fuzzy matched characters are not highlightedExpected and Actual Behavior
CodePen: https://codepen.io/stagefright5/pen/xxOvMLW?editors=1010
Substring match is highlighted (with
fuzzy: true
)Fuzzy match is not highlighted
Steps to Reproduce the Problem
fuzzy: true
forfilter
optionsfilterNodes(str)
wherestr
is not a substring but a fuzzy matchCodePen: https://codepen.io/stagefright5/pen/xxOvMLW?editors=1010
Environment
The text was updated successfully, but these errors were encountered: