Inverse Search in Filter-Control#7937
Closed
Conversation
added 2 commits
August 18, 2025 11:53
…l inclusions with exclusions.
Owner
|
Sorry for the delayed response! This extension was not originally maintained by me, so I haven't been able to review it in a timely manner. I just took a look — this is a nice feature improvement. However, there are a couple of concerns:
If you'd like to pursue this, I'd suggest making the exclude prefix configurable and keeping the original OR behavior as the default to avoid breaking changes. Thank you for your contribution! |
This pull request was closed.
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.
🤔Type of Request
🔗Resolves an issue?
It does not resolve an issue in the Filter Control extension, but it adds the ability to do an inverse search.
📝Changelog
By prepending a keyword with
[!], this keyword gets excluded from the list. It uses AND logic and can be combined with the regular filtering provided by Filter Control.For example, let's take the latest CVEs published by NVD:
The user is interested in vulnerabilities related to memory:
However, the user is not interested in Linux, and excludes these results:
💡Example(s)?
A demo is available at https://live.bootstrap-table.com/code/0x164C9DFC/18990, albeit with a reduced dataset.
The demo also features a customSearch function offering the same functionality to the regular search provided by Bootstrap-Table.
☑️Self Check before Merge
I have no updated the documentation. No new customizable parameters were introduced.
[!]is hardcoded and the algorithm modified accordingly to fit my use-case. If you think this is a useful improvement, please modify as you seem fit for the project.