Fix a bug in ImGuiTextFilter and extend it to be more customizable#2435
Open
kudaba wants to merge 1 commit intoocornut:masterfrom
Open
Fix a bug in ImGuiTextFilter and extend it to be more customizable#2435kudaba wants to merge 1 commit intoocornut:masterfrom
kudaba wants to merge 1 commit intoocornut:masterfrom
Conversation
ed66ca5 to
2c6b0a4
Compare
2c6b0a4 to
06dee58
Compare
06dee58 to
f8d1a10
Compare
f8d1a10 to
7b3d379
Compare
… multiple fields. Preserved current behavior and performance. * Fixed negative matches not working when located after a positive matches. Optimized by keeping all negative matches at the front of the filter list. * Add the following customization options: ** Custom split character, default is still ',' ** Minimum word match length can be used to keep the search more stable for the first couple characters of input ** Match mode can be switch from Or (any pass causes a success) to And (all positive filters must match). * Add a utility to allow applying a single filter to multiple fields.
Owner
|
Why closing and deleting this? |
Contributor
Author
|
I was updating/cleaning up old prs, must have mis-clicked on this one, it's still alive and well. |
0c1e5bd to
bb6a60b
Compare
8b83e0a to
d735066
Compare
b3b85d8 to
0755767
Compare
c817acb to
8d39063
Compare
|
Created kudaba#1 to extend this by exposing the new customization options to users |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context:
Depending on the context I like to use different filtering modes. This lets me tweak the behavior without having to completely write a whole new system each time.
I made sure to preserve the current behavior and performance.
Changes:
Multi field filter usage: