Skip to content

Conversation

@huamurui
Copy link

implement #1002

I'm trying to add this feature. Simple negative filtering seems easy to implement. However, the current filtering implementation likely needs more improvement, mainly regarding handling multiple search conditions.
Consider using spaces as the separator for search conditions, and then...

The general logic is:
Positive keywords are usually related by OR (e.g., searching for "Header Footer," meaning wanting to see both the Header and Footer).
Negative keywords are related by AND NOT (must not contain this word).


Then, for the case where both positive and negative conditions exist, my approach is as follows:
First, perform a positive filter for "Content," searching for components with "Content" in their names. Once you find a Content component, all its child components should also be displayed. Next, process the negative filter for "Wrapper." Now we're inside the Content component. Then, process "-Wrapper" here; if it matches, skip the parent component and continue checking and retaining the child components.

@netlify
Copy link

netlify bot commented Jan 16, 2026

Deploy Preview for vue-devtools-docs canceled.

Name Link
🔨 Latest commit 43c439e
🔍 Latest deploy log https://app.netlify.com/projects/vue-devtools-docs/deploys/6969cff48d39f60008de6892

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

Successfully merging this pull request may close these issues.

1 participant