xbps icon indicating copy to clipboard operation
xbps copied to clipboard

Feature: Support multiple `AND`ed search terms via `xbps-query -s term1 term2`

Open camoz opened this issue 3 years ago • 0 comments

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.)

camoz avatar Apr 19 '22 17:04 camoz