Closed
Labels
Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalIn-PRThis issue has a related PRIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.
Milestone
Description
Summary
Add "Duplicate Tab" option to open same profile in different tab
Reacted by Dhananjay Odhekar, David Nagl, Ignacio Buioli, Denis Malinochkin, Patrik Helia, Joe Tavin, xumingmin, Christian Rachmaninoff, Ulisses Cavalcante, Cosimo Chellini and 5 more
Reacted by Geoffrey van Wyk and Vishnu05
Metadata
Metadata
Assignees
Labels
Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalIn-PRThis issue has a related PRIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.
Activity
dnagl commentedon Jun 25, 2019
How sould you be able to trigger the duplication of a tab?
carlos-zamora commentedon Jun 25, 2019
So, what do you mean by "duplicate"? I have a few ways to interpret this:
Also, if there's interest in the latter two, what are some things in the "state" that should be maintained?
NOTE: I think we wouldn't be able to do the last one today, but we can definitely make strides towards it in the long run :)
J00MZ commentedon Jun 25, 2019
David Nagl (@dnagl), triggering could be using Keyboard combo such as Ctrl+Shift+D
Carlos Zamora (@carlos-zamora) , excellent breakdown, I was thinking "Simple", duplicating the current profile only.
However, I see no reason 2, 3 can't be in the long run Roadmap too as you noted.
Re "state":
My use case is SSHing from local shell to multiple remote servers, so duplicating the SSH session from current profile would be very useful.
carlos-zamora commentedon Jun 25, 2019
Personally, I think this would be a great thing to have as an option in a flyout menu when you right-click on a tab. Similar to when you right-click a tab in Edge.
dnagl commentedon Jun 25, 2019
Joe Tavin (@J00MZ) I am with you that this is a bigger feature and to provide a simple implmentation to duplicate a tab with the current used profile would be the first step in the right direction.
Carlos Zamora (@carlos-zamora) A flyout menu would be a good idea. However, this functionality should be available also by using a keyboard shorcut.
Maybe I am able to provide a simple implementation of this feature request and bring it into the master of the project with a pull request.
carlos-zamora commentedon Jun 25, 2019
David Nagl (@dnagl) Yup! We're on the same page. And we can't do the flyout menu until #760 gets resolved anyways.
I'd very much appreciate it if you implement this. 😊 Let me know if you have any questions! (and definitely add me as a reviewer so I get a notification when it comes in)
xmm1989218 commentedon Jun 25, 2019
Carlos Zamora (@carlos-zamora) "Simple" + custom shortcut is good enough
Joe Tavin (@J00MZ) if has the "Simple" way, can use commandline in profile.json to implement FAKE "Full State Copy",
"commandline" : "wsl.exe -d Legacy -- /path_to/ssh_script",
J00MZ commentedon Jun 25, 2019
xumingmin (@xmm1989218) I've used the command line in profile.json for similar stuff, such as defaulting to a specific directory which has my custom .bashrc, but I'd classify it as a "hack", not feature.
xmm1989218 commentedon Jun 25, 2019
Joe Tavin (@J00MZ) your right. it is hack. if has many ssh-host will seem ugly. it just works at light startup job
10 remaining items
dnagl commentedon Jun 27, 2019
Carlos Zamora (@carlos-zamora) I cannot add you as a reviewer to the pull request. Am I missing some permissions for this action?
carlos-zamora commentedon Jun 27, 2019
Huh. I guess you do need permissions for that. Found it though. I'll try and get to it tomorrow. Thanks!
#1536 - Feature Request - Duplicate tab (#1685)
CoskunSunali commentedon Aug 7, 2019
It seems that new tab and duplicate tab features work the same way for me when I use it for WSL. E.g. they both create a new tab and nothing else.
I SSHed into a server using Ubuntu, duplicated the tab, SSH session is not carried over. I switched to a directory and duplicated the tab, the directory was set to the default
startingDirectorywhich is//wsl$/Ubuntu/home/coskun.So why would I use the duplicate feature? No pun intended, just trying to understand what is the advantage of using the duplicate feature over creating a new tab.
J00MZ commentedon Aug 7, 2019
Coskun Sunali (@CoskunSunali)
The duplicate tab feature defaults to the profile you are using now.
Opening a new tab defaults to your default profile.
If you use various different profiles in Terminal, it's very convenient to duplicate your current working one rather than the default one.
For example, my default profile is Ubuntu 18 WSL, but I may want to duplicate my Powershell or Ubuntu 16 WSL tabs.
CoskunSunali commentedon Aug 7, 2019
Joe Tavin (@J00MZ) That totally makes sense. Thank you for the insights.
CoskunSunali commentedon Aug 7, 2019
Sorry for the spam. Are there any plans for implementing state duplication? E.g. carrying over the SSH session?
zadjii-msft commentedon Aug 7, 2019
Coskun Sunali (@CoskunSunali) No, because that would likely be neigh impossible to do in a general sense. How would we duplicate an instance of vim for example? What if the foreground process has opened some sort of file for exclusive access - how could we duplicate that process?
If there's a way this can be done safely and generally I'm all ears for proposed technical solutions, but I don't think it's something that's possible, so I'm not going to be investigating it.
CoskunSunali commentedon Aug 7, 2019
Mike Griese (@zadjii-msft) and Joe Tavin (@J00MZ) Thanks a lot for your time replying and explaining. Appreciated.