Jguer / yay

Yet another Yogurt - An AUR Helper written in Go
GNU General Public License v3.0
10.98k stars 359 forks source link

Option to display project (upstream) URL in search results list #1839

Open drws opened 1 year ago

drws commented 1 year ago

Is your feature request related to a problem? Please describe.

A package's upstream URL is a useful piece of information. Also the double-line-formatted search output still has some space in the first line that could be used.

Describe the solution you'd like

An option to also display AUR package's upstream URL when searching for packages.

Describe alternatives you've considered

Manual query only.

ipatch commented 1 year ago

heads up not sure if you know about

yay -Q info [app]

app being the package you are searching for will display a URL for the package it's not the aur project page but some link to the github repo for the project ie.

yay -Q --info python-doit-py

will spit out,

Name            : python-doit-py
Version         : 0.5.0-5
Description     : doit tasks for python stuff
Architecture    : any
URL             : https://github.com/pydoit/doit-py
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : python-configclass  python-doit
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 44.96 KiB
Packager        : Felix Yan <felixonmars@archlinux.org>
Build Date      : Thu 02 Dec 2021 07:04:48 PM CST
Install Date    : Thu 23 Feb 2023 11:02:10 AM CST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

and with my current temrinal setup alacritty i can shift+LMB click on the URL in the output to open up the URL in my browser.

hope that helps.

drws commented 1 year ago

This is useful, but it's an additional manual query to do for each package. This issue is specifically about extending double-line-formatted package search results to also include package's upstream URL (since it's a very useful piece of information).

jdholtz commented 1 year ago

This is easy to add in pkg/query/types.go as the URL information is already available. @Jguer, what do you think of adding the URL next to the package name (I can submit a PR for this)? Or possibly another flag/config option can be added to output more detailed information?