Open a new Terminal tab from command line (instead of a new console window) #5076
Labels
Issue-Feature
Complex enough to require an in depth planning process and actual budgeted, scheduled work.
Resolution-Duplicate
There's another issue on the tracker that's pretty much the same thing.
The Windows Terminal now has brilliant support for command line arguments like:
wt.exe -d .
Open a new wt instance in the current working directorywt.exe -p <profile name>
Create a wt instance running the given profile, to unblockwt.exe ; new-tab ; split-pane -V
Launch the terminal with multiple tabs, splits, to unblockWhat's missing for me is, that every time I run
wt.exe
with arguments, a new console window appears which - of course - only hosts one single tab. I use tabs to manage multiple sessions in one single console window, so it would be huge, ifwt.exe
command lines could be written to reuse existing windows by "just" adding (and focusing) a new tab.To avoid misunderstandings: There's an argument
new-tab
but as far as I know, this can be used to force a new console window to open one or more further new tab(s). This is not what I want: I meant to reuse an existing console window (if available) and open a new tab in there.I posted this idea on Twitter here. Please read the thread for more information.
In gif below, I use a tool git tool called RepoZ to jump to the directory of a chosen git repository.
However, for each "Open In Windows Terminall", a new window is opened where a tab would have been more convenient.
Proposed technical implementation details
I have no implementation idea how this works in the Windows Terminal process itself.
However, on the command line side, this could be the new default behavior for
wt.exe
-commands in my opinion. To keep things downwards compatible, we could add a new argument option likewt.exe -d . reuse-window
to make sure that Windows Terminal should try to use an existing process if available. If not, I'd suggest that a new Window appears which can be used by subsequent calls with the optiomreuse-window
.The text was updated successfully, but these errors were encountered: