winget search
output displays incomplete id when id is long
#3986
Labels
Area-Output
Issue related to CLI output
Brief description of your issue
Output of
winget search
is cutting the id if it is longer and I think this wasn't the case before1.7.3172
(I'm not completely sure about the version it appeared but I think that it was displaying full ids in the past).When you search for a package you then most likely want to copy the id to use it to upgrade/install/... so shortening ids is bad idea IMHO.
Here is the example of
winget search terminal
output:The output of
winget list terminal
is behaving ok - displaying full ids:Steps to reproduce
winget search terminal
Expected behavior
The lenght of the
id
column inwinget search
output should be determined by longestid
value in displayed list - as it is the case forwinget list
Actual behavior
it seems that longer ids like
Windows.Terminal.Preview
are shortened to some artificial constant length (and comparingwinget search
andwinget list
output I think same applies for thename
but there is some longer constant length if I'm not mistakenEnvironment
The text was updated successfully, but these errors were encountered: