Repository navigation
Closed
Labels
Area-Commandlinewt.exe's commandline argumentswt.exe's commandline argumentsArea-ServerDown in the muck of API call servicing, interprocess communication, eventing, etc.Down in the muck of API call servicing, interprocess communication, eventing, etc.Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Complex enough to require an in depth planning process and actual budgeted, scheduled work.Product-TerminalThe new Windows Terminal.The new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.Fix is checked in, but it might be 3-4 weeks until a release.
Milestone
Description
Description of the new feature/enhancement
I have been playing around with Jetbrains Rider, and when i start a console app with that IDE, it runs the console window inside a docked window in the IDE.
So what i was thinking. How cool would it be, if Windows Terminal allows external applications to start a new Console window in the currently running Windows Terminal instance.
That way whether its VisualStudio or Rider, those IDE's can be configured to start a new Console window inside the Windows Terminal instance.
The way i see this working is: I press F5/ctrl-F5 in visual studio, and instead of opening a new cmd console window, a new tab appears in my running Windows Terminal instance.
Reacted by Brar Piening, Victor, Fred J. Mills, Anthony Vanelverdinghe, Thomaz Moura, Mikael Berrin, t1fighter, Alexander Fesenko, とじょ17, vsh01 and 165 more
Reacted by Brar Piening, Victor, Oleksandr Bocharov, Alexander Oleshov, Sandor Drieënhuizen, Veniamin Krol, Francisco Oca, coosmiin, Fredrik Høisæther Rasch, Pedro Barbiero and 18 more
Reacted by David Schneider, Chris, François Levasseur, Ashirov, Andrii Ilchenko and Tushar
Metadata
Metadata
Assignees
Labels
Area-Commandlinewt.exe's commandline argumentswt.exe's commandline argumentsArea-ServerDown in the muck of API call servicing, interprocess communication, eventing, etc.Down in the muck of API call servicing, interprocess communication, eventing, etc.Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Complex enough to require an in depth planning process and actual budgeted, scheduled work.Product-TerminalThe new Windows Terminal.The new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.Fix is checked in, but it might be 3-4 weeks until a release.
Activity
lostmsu commentedon Feb 6, 2020
Yes, please. There's a Visual Studio extension, that lets you open command line in the current project folder. I set it to launch wt.exe, and it always creates a new window, but I'd love if I could pass a parameter to wt.exe, so that if Terminal is already running, it would be activated a new tab would open there instead.
DHowett-MSFT commentedon Feb 7, 2020
Thanks for the request! I thought we had a backlog item for "allow remote control of a terminal" (like: wt.exe could
--remoteto control another open instance and add tabs or whatever), but it looks like we don't.This is now that issue. Triaged into backlog.
/cc Mike Griese (@zadjii-msft): I may be wrong in not finding a "remote control" issue
[-]Allow remote applications to start a new shell inside an active WindowsTerminal instance[/-][+]Allow remote applications to start a new shell inside an active WindowsTerminal instance (remote control?)[/+]DHowett-MSFT commentedon Feb 7, 2020
Partially supported by #2080.
zadjii-msft commentedon Feb 7, 2020
This was briefly mentioned in this spec
Which yea is part of #2080, but I don't think has it's own issue.
Rumbah2 commentedon Feb 14, 2020
Wow, I was just thinking about "starting a new program/task in any existing windows terminal window" or a "single instance mode" to populate a WT window with multiple tasks via CLI would be great.
But something like sessions would be even better and more flexible.
But I admit that I'd prefer a "quick and dirty" single instance mode in the near future over a flexible session management in the distant future (as I could use it sooner than later).
[-]Allow remote applications to start a new shell inside an active WindowsTerminal instance (remote control?)[/-][+]Add support for wt.exe to run commands in an existing Terminal Window[/+]69 remaining items
zadjii-msft commentedon Aug 30, 2021
Ah, from WSL you'll need:
Execution aliases do not work in WSL distributions. If you want to use
wt.exefrom a WSL command line, you can spawn it from CMD directly by runningcmd.exe. The/coption tells CMD to terminate after running.Also, you can read this in the docs
hardeepparmar commentedon Aug 30, 2021
But this works only from with in cmd tab window.. This does not work if you issue this command from say within powershell tabbed window.
zadjii-msft commentedon Aug 30, 2021
🤔
DJackman123 commentedon Aug 30, 2021
Beat me to the punch. Yes, it does work in a PowerShell tab. However, it does not work in a Windows Terminal window running as administrator (see #9628).
hardeepparmar commentedon Sep 1, 2021
Yes indeed i am running Windows terminal as Administrator and I see this issue...However as you said, if I do not run at as administrator, it works just as expected. Thanks for confirming and making it more explicit and clear.
MetaMmodern commentedon Feb 12, 2022
For those who are kinda new to this: here is how you can do it the easy way.(Works for me in Windows 10 Pro with Windows Terminal(not Preview))
Thanks Microsoft for adding this to GUI)
LawranceFung commentedon Feb 13, 2022
Neither "Attach to the most recently used window" nor "Attach to the most recently used window on this desktop" work for me on Windows 11. I am not using the Preview version of Windows Terminal. Any idea what's up?
MetaMmodern commentedon Feb 13, 2022
Sorry, buddy, no idea. Try checking the above comments (like modifying the registry). I'll update my prev comment, cuz I'm on windows 10.
LawranceFung commentedon Feb 13, 2022
Are there plans to launch a new tab in an existing window, but to choose the window based on MRU order?
zadjii-msft commentedon Feb 14, 2022
that's... already how it's supposed to work?

DJackman123 commentedon Feb 14, 2022
zadjii-msft commentedon Feb 14, 2022
LawranceFung commentedon Feb 14, 2022
That's not working for me when calling
wt.exe -w 0 nt
or
wt.exe -w 1 nt
via AutoHotkey when both AutoHotkey and both Windows Terminal windows are running as administrator. It always opens the new tab in the first wt window opened.
DJackman123 commentedon Feb 14, 2022
Wondering if that is related to #9628. Add this information to that bug so when it's evaluated for 1.14 this scenario will be included in that evaluation.
LawranceFung commentedon Feb 14, 2022
Yes, should be same issue as #9628 barring some strange behavior when called by AHK.