Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated tabs open next to the current tab #14521

Merged
7 commits merged into from
Jan 4, 2023
Merged

Duplicated tabs open next to the current tab #14521

7 commits merged into from
Jan 4, 2023

Conversation

vamsiikrishnaak
Copy link
Contributor

@vamsiikrishnaak vamsiikrishnaak commented Dec 10, 2022

Summary of the Pull Request

Added an additional optional parameter that indicates the position of the new tab being created.

TerminalDuplicateTabIssue_BeforeFix.mp4
TerminalDuplicateTabIssue_AfterFix.mp4

PR Checklist

Detailed Description of the Pull Request / Additional comments

An optional parameter is added to TerminalPage::_CreateNewTabPane() and TerminalPage::_InitializeTab() which indicates the insert position of the duplicated tab.
During a new tab creation (not duplicate), this optional parameter has a default value(-1) and the new tab is inserted at the end.
The duplicated tab is inserted next to the original one even if it is not focused.

Validation Steps Performed

Created different tabs and duplicated them.
Duplicated tabs that are focused and not focused.

@ghost ghost added Area-Settings Issues related to settings and customizability, for console or terminal Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. labels Dec 10, 2022
@vamsiikrishnaak
Copy link
Contributor Author

@microsoft-github-policy-service agree

@vamsiikrishnaak vamsiikrishnaak changed the title Duplicated tab should be next to original tab (#14313) Duplicated tab should be next to original tab Dec 10, 2022
@vamsiikrishnaak vamsiikrishnaak marked this pull request as ready for review December 10, 2022 05:33
@DHowett
Copy link
Member

DHowett commented Dec 13, 2022

Thanks for the contribution! Sorry for the delay in reviewing it. As we enter the holidays, we're going to be running a bit short-staffed. 😄

@DHowett
Copy link
Member

DHowett commented Dec 15, 2022

@zadjii-msft I am 100% okay saying "duplicated tabs open next to the current tab" actually...

@vamsiikrishnaak vamsiikrishnaak changed the title Duplicated tab should be next to original tab Duplicated tabs open next to the current tab Dec 16, 2022
@zadjii-msft zadjii-msft added the AutoMerge Marked for automatic merge by the bot when requirements are met label Jan 4, 2023
@ghost
Copy link

ghost commented Jan 4, 2023

Hello @zadjii-msft!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 2d66dc4 into microsoft:main Jan 4, 2023
@ghost
Copy link

ghost commented Jan 24, 2023

🎉Windows Terminal Preview v1.17.1023 has been released which incorporates this pull request.:tada:

Handy links:

@noheromen
Copy link

Hi, I know this issue is closed, but I actually find it annoying. I liked that duplicate tabs would open at the end... not next to the one that is duplicated. Can you please provide setting, where this can be changed between two options?

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Settings Issues related to settings and customizability, for console or terminal AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicated tab should be next to original tab
5 participants