Duplicate Tab and Split Tab should duplicate the environment. #17087

Closed
opened 2026-01-31 05:31:51 +00:00 by claunia · 7 comments
Owner

Originally created by @slambert-msft on GitHub (Mar 25, 2022).

Description of the new feature/enhancement

Duplicate Tab would work more like cmd.exe's "start" command, creating an actual clone of the tab with the same cwd, environment, colors, etc. Today Duplicate Tab is basically the same as "New Tab" and executing "start" in a Command Prompt creates a clone in a new terminal window.

Split Tab should not only create a new pane, but that pane should have the same contents as the original pane. Today the behavior is more like a "New Pane" button.

Proposed technical implementation details (optional)

I want a way to properly clone/split a tab, but I'm not tied to the specific words on the buttons. I think it's more intuitive for "Duplicate Tab" to mean copy, but if changing the behavior of a command like this would confuse more people then a new "Clone Tab" command would at least solve my problem.

Originally created by @slambert-msft on GitHub (Mar 25, 2022). # Description of the new feature/enhancement Duplicate Tab would work more like cmd.exe's "start" command, creating an actual clone of the tab with the same cwd, environment, colors, etc. Today Duplicate Tab is basically the same as "New Tab" and executing "start" in a Command Prompt creates a clone in a new terminal window. Split Tab should not only create a new pane, but that pane should have the same contents as the original pane. Today the behavior is more like a "New Pane" button. # Proposed technical implementation details (optional) I want a way to properly clone/split a tab, but I'm not tied to the specific words on the buttons. I think it's more intuitive for "Duplicate Tab" to mean copy, but if changing the behavior of a command like this would confuse more people then a new "Clone Tab" command would at least solve my problem.
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 05:31:51 +00:00
Author
Owner

@cpriest commented on GitHub (Apr 7, 2022):

Adding on to this ticket because my issue is similar.

If I launch windows terminal with custom arguments such as wt.exe ssh ..., then duplicate tab, split pane, none of them work. This is in the same vein as above in that it should exec the same ssh.exe ... in the new tab / pane.

Right now, a new tab opens and then dies immediately.

@cpriest commented on GitHub (Apr 7, 2022): Adding on to this ticket because my issue is similar. If I launch windows terminal with custom arguments such as `wt.exe ssh ...`, then duplicate tab, split pane, none of them work. This is in the same vein as above in that it should exec the same `ssh.exe ...` in the new tab / pane. Right now, a new tab opens and then dies immediately.
Author
Owner

@zadjii-msft commented on GitHub (Apr 27, 2022):

Okay, sorry to leave this on read for so long. I knew it was somewhere on the backlog, just couldn't find it.

I think this is basically the same as #4259 - "I've got one pane with some env vars set, and I'd like to open a new tab/pane with those same env vars".

@slambert-msft double check for me that these two issues are the same/?


@cpriest That kinda sounds like it's own issue - mind filing a new issue so we can follow up on that topic specifically?

@zadjii-msft commented on GitHub (Apr 27, 2022): Okay, sorry to leave this on read for so long. I knew it was somewhere on the backlog, just couldn't find it. I _think_ this is basically the same as #4259 - "I've got one pane with some env vars set, and I'd like to open a new tab/pane with those same env vars". @slambert-msft double check for me that these two issues are the same/? <hr> @cpriest That kinda sounds like it's own issue - mind filing a new issue so we can follow up on that topic specifically?
Author
Owner

@slambert-msft commented on GitHub (Apr 27, 2022):

Yep, these are the same.

From: Mike Griese @.>
Sent: Wednesday, April 27, 2022 4:10 AM
To: microsoft/terminal @.
>
Cc: Sean Lambert @.>; Mention @.>
Subject: Re: [microsoft/terminal] Duplicate Tab and Split Tab should duplicate the environment. (Issue #12760)

Okay, sorry to leave this on read for so long. I knew it was somewhere on the backlog, just couldn't find it.

I think this is basically the same as #4259https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fterminal%2Fissues%2F4259&data=05%7C01%7CSean.Lambert%40microsoft.com%7Cd8242ebb3e684f72c65e08da283e812f%7C72f988bf86f141af91ab2d7cd011db47%7C0%7C0%7C637866546180162802%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=b6bKiVxETAV8FJ4SHCRjFUtp6pfZqev43U%2Fasr5j5j4%3D&reserved=0 - "I've got one pane with some env vars set, and I'd like to open a new tab/pane with those same env vars".

@slambert-msfthttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fslambert-msft&data=05%7C01%7CSean.Lambert%40microsoft.com%7Cd8242ebb3e684f72c65e08da283e812f%7C72f988bf86f141af91ab2d7cd011db47%7C0%7C0%7C637866546180162802%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7hukqGbCJ5d3A7y4Shh5Pjj03zg2zA5fF1s5hEHnp1Q%3D&reserved=0 double check for me that these two issues are the same/?

@slambert-msft commented on GitHub (Apr 27, 2022): Yep, these are the same. From: Mike Griese ***@***.***> Sent: Wednesday, April 27, 2022 4:10 AM To: microsoft/terminal ***@***.***> Cc: Sean Lambert ***@***.***>; Mention ***@***.***> Subject: Re: [microsoft/terminal] Duplicate Tab and Split Tab should duplicate the environment. (Issue #12760) Okay, sorry to leave this on read for so long. I knew it was somewhere on the backlog, just couldn't find it. I think this is basically the same as #4259<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fterminal%2Fissues%2F4259&data=05%7C01%7CSean.Lambert%40microsoft.com%7Cd8242ebb3e684f72c65e08da283e812f%7C72f988bf86f141af91ab2d7cd011db47%7C0%7C0%7C637866546180162802%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=b6bKiVxETAV8FJ4SHCRjFUtp6pfZqev43U%2Fasr5j5j4%3D&reserved=0> - "I've got one pane with some env vars set, and I'd like to open a new tab/pane with those same env vars". @slambert-msft<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fslambert-msft&data=05%7C01%7CSean.Lambert%40microsoft.com%7Cd8242ebb3e684f72c65e08da283e812f%7C72f988bf86f141af91ab2d7cd011db47%7C0%7C0%7C637866546180162802%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7hukqGbCJ5d3A7y4Shh5Pjj03zg2zA5fF1s5hEHnp1Q%3D&reserved=0> double check for me that these two issues are the same/?
Author
Owner

@zadjii-msft commented on GitHub (Apr 27, 2022):

Right on. Sorry again for the triaging delay 😋

/dup #4259

@zadjii-msft commented on GitHub (Apr 27, 2022): Right on. Sorry again for the triaging delay 😋 /dup #4259
Author
Owner

@ghost commented on GitHub (Apr 27, 2022):

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 (Apr 27, 2022): 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!
Author
Owner

@cpriest commented on GitHub (Apr 28, 2022):

@zadjii-msft: Just to be clear, I should create a new issue for my 'add-on' to this now-duplicate issue? I had seen the other issue #4259 but thought it was different enough from that, but not from this. Primarily because #4259 is mostly talking about environment variables.

@cpriest commented on GitHub (Apr 28, 2022): @zadjii-msft: Just to be clear, I should create a new issue for my 'add-on' to this now-duplicate issue? I had seen the other issue #4259 but thought it was different enough from that, but not from this. Primarily because #4259 is mostly talking about environment variables.
Author
Owner

@zadjii-msft commented on GitHub (May 2, 2022):

@cpriest ACTUALLY after the weekend I remembered we actually do already have an issue for that. See #5047. I'll make sure to call out the commandline specifically in that one.

@zadjii-msft commented on GitHub (May 2, 2022): @cpriest ACTUALLY after the weekend I remembered we actually do already have an issue for that. See #5047. I'll make sure to call out the `commandline` specifically in that one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17087