FS#55342 - Be able to to limit the search field to the package name
Attached to Project:
Pacman
Opened by Chunyang Xu (xuchunyang) - Wednesday, 30 August 2017, 09:14 GMT
Opened by Chunyang Xu (xuchunyang) - Wednesday, 30 August 2017, 09:14 GMT
|
Details
Summary and Info:
"pacman -Ss <pat>" searches across both the package name and description, but sometimes I want to search only the package name, can pacman provide a way for this? such as add a option like "--only-name", then I can use "pacman -Ss --only-name <pat>". Steps to Reproduce: |
This task depends upon
---
~ $ pacman -Ssq | grep pattern
qt5-xmlpatterns
haskell-pattern-arrows
~ $ pacman -Ss | awk -F"[/ ]" '{ if ($2 ~ /pattern/) { print; getline; print } else getline }'
extra/qt5-xmlpatterns 5.9.1-2 (qt qt5)
Support for XPath, XQuery, XSLT and XML schema validation
community/haskell-pattern-arrows 0.0.2-3
Arrows for Pretty Printing
~ $