feat: Run plugin refactor and installer bundling#9
Conversation
There was a problem hiding this comment.
Pull request overview
This PR refactors the PowerToys Run plugin implementation to improve result ranking (especially for bare qs browse mode) and updates installer/build tooling so the Run plugin is bundled alongside the Command Palette extension in the Inno Setup EXE installer. It also adjusts the Run shortcut editor to better handle multi-launch workspaces and documents the new distribution paths.
Changes:
- Extracted scoring/ranking logic into
RunQueryScoringand updated the Run plugin query pipeline to use it. - Updated Run shortcut editing/saving to apply edits to the primary launch while preserving additional launches and companion/link metadata (with new unit tests).
- Bundled the Run plugin into the EXE installer and hardened build/deploy scripts + docs to reflect the combined distribution.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/build-run-plugin.ps1 | Adds build verification and safer deploy behavior when PowerToys is running/locking DLLs. |
| QuickShell/setup-template.iss | Installs the Run plugin payload into the PowerToys Run plugins directory during EXE install. |
| QuickShell/build-exe.ps1 | Builds the Run plugin alongside the EXE and injects its path into the Inno Setup script. |
| QuickShell.Run/ShortcutEditorWindow.cs | Prefills fields from the primary launch and saves via TrySaveRunEditor, with preservation messaging. |
| QuickShell.Run/Main.cs | Slims query logic and delegates scoring/utility inclusion to RunQueryScoring; updates some context menu glyphs. |
| QuickShell.Core/Services/RunQueryScoring.cs | New shared scoring logic for browse vs search mode result ordering. |
| QuickShell.Core.Tests/ShortcutFormSaveRunEditorTests.cs | Adds coverage for Run editor save behavior (create/edit/preserve/primary selection). |
| QuickShell.Core.Tests/RunQueryScoringTests.cs | Adds coverage for browse-mode shortcut-vs-utility ranking and pin order behavior. |
| docs/powertoys-run-plugin.md | Updates installation guidance to reflect WinGet/GitHub EXE bundling + Run-only ZIP option. |
| docs/install.md | Updates installer type/steps and clarifies CmdPal vs Run behavior + restart guidance. |
| .github/workflows/release-extension.yml | Updates release notes text to reflect EXE bundling and Run ZIP-only artifacts. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7fdb669c11
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4cb0ab607a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
3fdd084 to
dccf8ac
Compare
Uninstall Run plugin in setup template, limit recency bonus to unpinned shortcuts in browse mode, and repair invalid launch lists in Run editor save. Co-authored-by: Cursor <cursoragent@cursor.com>
4cb0ab6 to
0d27328
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
1 similar comment
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Slim down QuickShell.Run Main.cs, rank shortcuts above utility commands, improve Run editor multi-launch save, and package the plugin in Inno Setup with hardened build/deploy scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Anthony Thompson <tonythethompson@hotmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Anthony Thompson <tonythethompson@hotmail.com>
Uninstall Run plugin in setup template, limit recency bonus to unpinned shortcuts in browse mode, and repair invalid launch lists in Run editor save. Co-authored-by: Cursor <cursoragent@cursor.com>
c0652e6 to
c874fb1
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
Test plan