Open a new tab in an existing window using the command line #12253

Closed
opened 2026-01-31 03:10:23 +00:00 by claunia · 4 comments
Owner

Originally created by @juzi214032 on GitHub (Jan 29, 2021).

Description of the new feature/enhancement

I created a right-click menu in the background of the directory with the following command:

C:\Users\Juzi\AppData\Local\Microsoft\WindowsApps\wt.exe new-tab -d "%V"

Currently it opens a new window to run terminal each time, but what I want to achieve is to not open a new window if there is already a terminal instance, but to add a new tab to the existing terminal instance.

Can such a function be implemented? Thanks.

Originally created by @juzi214032 on GitHub (Jan 29, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement I created a right-click menu in the background of the directory with the following command: ```shell C:\Users\Juzi\AppData\Local\Microsoft\WindowsApps\wt.exe new-tab -d "%V" ``` Currently it opens a new window to run terminal each time, but what I want to achieve is to not open a new window if there is already a terminal instance, but to add a new tab to the existing terminal instance. Can such a function be implemented? Thanks. <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 03:10:23 +00:00
Author
Owner

@KalleOlaviNiemitalo commented on GitHub (Jan 29, 2021):

https://github.com/microsoft/terminal/issues/4472 would cover this feature.

@KalleOlaviNiemitalo commented on GitHub (Jan 29, 2021): <https://github.com/microsoft/terminal/issues/4472> would cover this feature.
Author
Owner

@juzi214032 commented on GitHub (Jan 29, 2021):

#4472 would cover this feature.

thanks

@juzi214032 commented on GitHub (Jan 29, 2021): > #4472 would cover this feature. thanks
Author
Owner

@zadjii-msft commented on GitHub (Jan 29, 2021):

Yes, that's the one. Thanks!

/dup #4472

@zadjii-msft commented on GitHub (Jan 29, 2021): Yes, that's the one. Thanks! /dup #4472
Author
Owner

@ghost commented on GitHub (Jan 29, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jan 29, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12253