本文へスキップ
Kitbay
スキル

add-fallback-commands

MIT2026年11月11日 更新140,862GitHubスター

A skill shipped in the PowerToys Command Palette extension template that shows an extension author how to add fallback commands, which Command Palette shows only when no other command matches what the user typed.

スキルの内容

A skill shipped in the PowerToys Command Palette extension template that shows an extension author how to add fallback commands, which Command Palette shows only when no other command matches what the user typed. It covers static fallback items that always appear, dynamic ones built on a list page that updates as the query changes, and a responsive version that cancels stale searches and waits briefly before running slow lookups. C# samples show web search items that open URLs, and a table lists built-in extensions that use fallbacks, such as the calculator, shell, web search and WinGet. It links to Microsoft's extension samples and docs.

できること

  • Add static fallback commands to an extension
  • Return results that change with the query
  • Cancel stale searches for slow lookups