Repository navigation
[idea] Support opening a normal tab/pane with a custom shell command #4180
Replies: 2 comments
|
Same need here (Windows 11, pwsh as Until there is a first-class The detail: a tab that runs WSL only sees the Two things from the first attempt that may help whoever implements this: |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Feature request
Allow a keybinding to create a normal terminal tab/pane whose PTY process is an explicit command, instead of always using
[terminal].default_shell.Motivation
On Windows, I use PowerShell as the default shell:
But I also want a shortcut such as
prefix+shift+cto open a normal Herdr tab directly into WSL:Today the available custom command types don't map cleanly to this use case:
type = "pane"opens a temporary/zoomed pane.type = "shell"runs a detached command and does not create an interactive terminal tab/pane.default_shell, so opening WSL requires a multi-step CLI/plugin workaround: create the tab, get its pane ID, then runwsl.exein it.Desired behavior
A first-class keybinding that creates a standard terminal tab or split and uses a custom command as that pane's PTY process.
For example:
Or, if placement should be generalized:
This would also be useful for SSH sessions, alternative shells, REPLs, dev containers, and other long-lived interactive commands.
Expected result
Pressing the shortcut should create a normal Herdr tab/pane, exactly like the built-in new-tab action, but with
wsl.exeas the pane's initial process instead ofdefault_shell.No zoomed/overlay pane and no intermediate PowerShell process should be required.
All reactions