MicrosoftDocs / terminal

Creative Commons Attribution 4.0 International
470 stars 177 forks source link

Feature+or+Question: If named tab 'bar' in named window 'foo' does not exist, create a new tab named 'bar' in windows 'foo'. #612

Closed flybyray closed 1 year ago

flybyray commented 1 year ago

This is a feature request or a question if this is already possible.

If named tab 'bar' in named window 'foo' does not exist, create a new tab named 'bar' in windows 'foo'.

From documentation there is a similar behavior only for windows:

// Open a new tab in the terminal window named foo with the default profile. If foo does not exist, create a new window named foo.
wt -w foo nt

Use case: wt-profiles might cause the use of resources which cannot be shared (like {socks-proxy,}-ports). Hence you only want one tab per profile ( maybe even across several wt instances ).

zadjii-msft commented 1 year ago

I suspect you're looking for something akin to https://github.com/microsoft/terminal/issues/12135 or https://github.com/microsoft/terminal/issues/10279.

mattwojo commented 1 year ago

Hey @flybyray -- Thanks for filing this issue. Looks like this is a feature request and doesn't currently require any updates to the documentation. Check out the requests linked above and please consider upvoting and/or adding comments. Thank you!