Feature: Support multiple `AND`ed search terms via `xbps-query -s term1 term2`
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
Start at the xbps-query -s command entry point and trace how multiple search terms are parsed and matched. The finished behavior should accept term1 term2, match packages containing both terms regardless of order, and include coverage for the two-term search behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.)
- Ngôn ngữ chính
- C
- Star
- 1.1k
- Fork
- 151
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của void-linux/xbps
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
void-linux/xbps#475 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
void-linux/xbps#701 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
void-linux/xbps#700 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
void-linux/xbps#696 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
void-linux/xbps#695 · 7 bình luận ·
Tất cả issue của void-linux/xbps
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
zephyrproject-rtos/zephyr#120318 · 1 bình luận ·
-
issue: bug report
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
darktable-org/darktable#22386 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100