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

Feature: Support multiple ANDed search terms via xbps-query -s term1 term2 #484

Open
camoz opened this issue Apr 19, 2022 · 0 comments
Open

Comments

@camoz
Copy link
Contributor

camoz commented Apr 19, 2022

It would be nice if xbps-query could support searching packages via xbps-query -s term1 term2 so that the search terms are logically ANDed, i.e. that it would return packages that match both term1 and term2. Theoretically it's already possible with an ERE, but cumbersome for a quick search (remember that the order of term1 term2 should not matter for the search).

Just for the record, multiple other package managers support this type of search, and it seems that users are used to that, see e.g. https://www.reddit.com/r/voidlinux/comments/nubnn4/confuse_to_xbpsquery/

Two random examples where it's useful: "arc theme", "python lsp".

(I know about fuzzypkg, and I also know that one could -s term1 | grep term2, but IMO a built-in solution would be nice here.)

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

No branches or pull requests

1 participant