Skip to content

[CmdPal] Add match score hint to fallback items #40080

@jiripolasek

Description

@jiripolasek

Description of the new feature / enhancement

Hi, I'd like to propose an idea for fallback items to indicate how well they match the query, as supplemental information for their ranking in the list of results.

I can imagine that we could have levels such as:

  • The list item represents an exact match.
  • The list item recognizes the format or has a partial match.
  • The list item can do something with the query because it works on everything (e.g., run).

This would allow top-level search to better order the results automatically.

It could also enable have more useful or verbose titles and subtitles, since it would reduce the need to use them for aggressive SEO.

Similar: #38288

Scenario when this would be used?

  • Date & Time extension:
    • Recognizes keywords like "now" or "time" to provide the value.
  • Web search extension:
  • Calculator extension:
    • Recognizes and prioritizes math equations (e.g., 12+12).
  • Run:
    • Would prefer executable file names.
  • Colors extension:
    • Hex or CSS color codes (e.g., "#ff0000" or "rgb(255 0 0)") are exact matches.
    • Named colors like "red" have high confidence, while uncommon names like "squirrel" have low confidence.

Supporting information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    CmdPal-APIIdea-EnhancementNew feature or request on an existing productNeeds-TriageFor issues raised to be triaged and prioritized by internal Microsoft teamsPriority-3Bug that is low priorityProduct-Command PaletteRefers to the Command Palette utility

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions