Skip to content

Allow multiple search terms in "winget search" where matches would've had to match all terms. #5893

@DandelionSprout

Description

@DandelionSprout

Relevant area(s)

WinGet CLI

Description of the new feature / enhancement

As of v1.12.350, Winget is (as far as I can tell) unable to support multiple terms in a single search, despite that general web search engines have been able to handle such for some 20 years now. So it shouldn't be impossible to have Winget support it too.

This would greatly help with more detailed searches. Someone searching for virtual machine programs, thinking of the "vm" shorthand and searching winget search vm would get around 130 results (many of them unrelated to virtual machines), while something like winget search "vm" "drive" would narrow it down faster.

Proposed technical implementation details

Make at least one of the following commands be able to find packages that match all terms (Micro + Soft is simply an example):

  • winget search "micro" "soft"
  • winget search "micro"+"soft"
  • winget search "micro""soft"
  • winget -q micro -q soft
  • winget search micro/soft

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-FeatureThis is a feature request for the Windows Package Manager client.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions