Skip to content
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

Document negation: https://pub.dev/help/search#query-expressions #7885

Open
jonasfj opened this issue Jul 22, 2024 · 5 comments
Open

Document negation: https://pub.dev/help/search#query-expressions #7885

jonasfj opened this issue Jul 22, 2024 · 5 comments

Comments

@jonasfj
Copy link
Member

jonasfj commented Jul 22, 2024

We support negation in the UI, by displaying [-] checkboxes. We have no way to set negation other than typing -is:plugin or something like that. But we haven't documented negation in the documentation.

@sigurdm
Copy link
Contributor

sigurdm commented Aug 1, 2024

Which search terms can be negated? @isoos do you know?

@isoos
Copy link
Collaborator

isoos commented Aug 1, 2024

I think only tags (in the form of prefix:identifier) can be negated. I've just checked that text phrases cannot be negated (which would be a useful feature too).

@sigurdm
Copy link
Contributor

sigurdm commented Aug 2, 2024

Can the updated:<duration> tags be negated?

@isoos
Copy link
Collaborator

isoos commented Aug 2, 2024

Can the updated: tags be negated?

Hm, while these are tag-shaped, they are not really the same internally (similar to package:<name> prefixes). I guess we really need to implement #1752 (maybe using package:query or a subset of it).

@sigurdm
Copy link
Contributor

sigurdm commented Aug 2, 2024

Not saying they have to be negatable, just that we need to know the current workings in order to document them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants