microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.86k stars 6.58k forks source link

Support custom terminals for PowerToys Run Shell plugin #29222

Open michaelmdresser opened 1 year ago

michaelmdresser commented 1 year ago

Description of the new feature / enhancement

I would like to customize the Shell plugin to use a shell other than cmd.exe, PowerShell.exe, or wt.exe.

Scenario when this would be used?

I have been using wezterm (https://wezfurlong.org/wezterm/index.html) and would like to have PowerToys Run launch that for the Shell plugin.

Supporting information

I see the settings file at %localappdata%\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\ShellPluginSettings.json (thanks to https://github.com/microsoft/PowerToys/issues/3440#issuecomment-632110274) but it appears that the Shell option is hardcoded based on an enum (I gather that from the description of https://github.com/microsoft/PowerToys/pull/25661). I'd like to be able to set the Shell to a string or similar to launch a shell/terminal of my choice, e.g. wezterm.exe.

Other related issues/PRs that I found in case the context is helpful:

htcfreek commented 11 months ago

We should wait until microsoft/terminal#16060 is implemented.