Open ibay770 opened 2 years ago
If I understand correctly, you desire to have wezterm be the default console host when opening programs from gui programs that don't have their own console.
https://github.com/microsoft/terminal/blob/main/doc/specs/%23492%20-%20Default%20Terminal/spec.md documents the complex handoff required for that. At a high level, it sounds like wezterm-gui would need to be built so that COM activation is possible, implement a particular COM interface, and then register itself as a default terminal.
The spec doesn't specify the minimum version of Windows in which that is supported, but https://devblogs.microsoft.com/commandline/windows-terminal-as-your-default-command-line-experience/ suggests that Windows 11 is required.
I'm in no rush to install Windows 11 on my AMD system (heard too many stories about terrible performance), so I've no way to test this functionality in the foreseeable future.
As announced in https://github.com/microsoft/terminal/discussions/15505 and https://github.com/MicrosoftDocs/terminal/pull/680, changing the default terminal no longer requires Windows 11; the feature was released for Windows 10 22H2 in KB5026435 (OS Build 19045.3031)
https://github.com/user-attachments/assets/a70ce01e-ecf3-46ed-a0ca-343541f1ef81
https://github.com/user-attachments/assets/568408da-bc61-4bd2-9a15-879f77b5f2e3
To have these in you explorer follow the below steps:
item(title="nvim" tip=tip_run_admin admin=has_admin cmd='wezterm.exe' args='start --cwd "@sel.dir" nvim')
item(title="wezterm" tip=tip_run_admin admin=has_admin cmd='wezterm.exe' args='start --cwd "@sel.dir"')
If you need logo like mine and the below logos in "~ \documents\logo\'
Change the code to
item(title="nvim" tip=tip_run_admin admin=has_admin image="C:\\Users\\{Username}\\Documents\\logo\\nvim.png" cmd='wezterm.exe' args='start --cwd "@sel.dir" nvim')
item(title="wezterm" tip=tip_run_admin admin=has_admin image="C:\\Users\\{Username}\\Documents\\logo\\wezterm.png" cmd='wezterm.exe' args='start --cwd "@sel.dir"')
The default app dialogue on Windows isn't cutting it so I was wondering if an option for Wezterm to handle the bat/cmd batch files could be made by default, on a double click instead of just a right click.