"Duplicate Tab" does not really duplicate tab: font size is not duplicated, but opened with default size #16084

Open
opened 2026-01-31 04:57:06 +00:00 by claunia · 8 comments
Owner

Originally created by @mailinglists35 on GitHub (Dec 9, 2021).

Windows Terminal version

1.12.2931.0

Windows build number

10.0.19044.1348

Other Software

C:\>wsl -l -v
  NAME            STATE           VERSION
* Ubuntu-20.04    Running         1

Steps to reproduce

Open new tab
Use Ctrl+mousewheel to adjust font size
Right click tab, click "Duplicate Tab"

Expected Behavior

New tab created with same font size

Actual Behavior

New tab created with profile default font size

Originally created by @mailinglists35 on GitHub (Dec 9, 2021). ### Windows Terminal version 1.12.2931.0 ### Windows build number 10.0.19044.1348 ### Other Software ```` C:\>wsl -l -v NAME STATE VERSION * Ubuntu-20.04 Running 1 ```` ### Steps to reproduce Open new tab Use Ctrl+mousewheel to adjust font size Right click tab, click "Duplicate Tab" ### Expected Behavior New tab created with same font size ### Actual Behavior New tab created with profile default font size
Author
Owner

@zadjii-msft commented on GitHub (Dec 15, 2021):

Actually, this might not be an easy starter, we might need to do the annoying work of plumbing a font size out of the TermControl, and into the NewTerminalArgs, so that the new tab can be spawned with the same size. That's easy, but tedious work.

@zadjii-msft commented on GitHub (Dec 15, 2021): Actually, this might _not_ be an easy starter, we might need to do the annoying work of plumbing a font size out of the `TermControl`, and into the `NewTerminalArgs`, so that the new tab can be spawned with the same size. That's easy, but tedious work.
Author
Owner

@michael-hawker commented on GitHub (Jun 23, 2022):

I was also expecting it to start in the same directory as the tab I just duplicated. If it just starts in the same as the starting directory how is duplicate tab different than just selecting the profile for a new tab?

Related to #13195

@michael-hawker commented on GitHub (Jun 23, 2022): I was also expecting it to start in the same directory as the tab I just duplicated. If it just starts in the same as the starting directory how is duplicate tab different than just selecting the profile for a new tab? Related to #13195
Author
Owner

@g0t4 commented on GitHub (Sep 27, 2023):

Would love to see duplicate pane do the same

@g0t4 commented on GitHub (Sep 27, 2023): Would love to see `duplicate pane` do the same
Author
Owner

@mailinglists35 commented on GitHub (Oct 8, 2023):

Oh now I understand. The name "Duplicate" has been erroneously assigned to the action in fact of starting a new tab of the same profile name.

Maybe the menu should be renamed "New tab" until a discussion would figure out what is and what is not achievable using the term "duplicate"? Because right now, the really only "duplicate" action performed is the profile name of the tab. Absolutely nothing else is "duplicated".

@zadjii-msft what do you think?

@mailinglists35 commented on GitHub (Oct 8, 2023): Oh now I understand. The name "Duplicate" has been erroneously assigned to the action in fact of starting a new tab of the same profile name. Maybe the menu should be renamed "New tab" until a discussion would figure out what is and what is not achievable using the term "duplicate"? Because right now, the really only "duplicate" action performed is the profile name of the tab. Absolutely nothing else is "duplicated". @zadjii-msft what do you think?
Author
Owner

@eight04 commented on GitHub (Oct 8, 2023):

👍 I thought it works like start cmd but then found that it is just a new tab with the same profile.

@eight04 commented on GitHub (Oct 8, 2023): 👍 I thought it works like `start cmd` but then found that it is just a new tab with the same profile.
Author
Owner

@zadjii-msft commented on GitHub (Oct 13, 2023):

Absolutely nothing else is "duplicated".

Well, that's not exactly true. If you configure your shell to tell the Terminal the CWD, duplicate tab & pane will use that path instead of the path from the profile.

The other elements - Font, Color scheme, title - those still need to be implemented, of course. But duplicate is still super helpful for copying the CWD

@zadjii-msft commented on GitHub (Oct 13, 2023): > Absolutely nothing else is "duplicated". Well, that's not exactly true. If you [configure your shell to tell the Terminal the CWD](https://learn.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory), duplicate tab & pane will use that path instead of the path from the profile. The other elements - Font, Color scheme, title - those still need to be implemented, of course. But duplicate is still super helpful for copying the CWD
Author
Owner

@mailinglists35 commented on GitHub (Oct 14, 2023):

current working directory is not duplicated on WSL1. is not duplicated in command prompt. is not duplicated in powershell? in what profile is duplicated?

@mailinglists35 commented on GitHub (Oct 14, 2023): current working directory is not duplicated on WSL1. is not duplicated in command prompt. is not duplicated in powershell? in what profile is duplicated?
Author
Owner

@mailinglists35 commented on GitHub (Oct 14, 2023):

ah sorry I missed the "if".. but then so it's nothing duplicated by default

@mailinglists35 commented on GitHub (Oct 14, 2023): ah sorry I missed the "if".. but then so it's nothing duplicated **by default**
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16084