I often need to open the same 4+ tabs with different starting directories. It would be nice to have a feature similar to the 'collections' in MS Edge that will open several tabs to a specific command line and starting directory.
You technically can do this now using combination of profiles with the commandline parameter set and using the wt argument parser (to get your tabs and/or panes). You could also just script it out purely using the argument parser (so you don't need to enter it every time you close Terminal).
Perhaps when the Settings UI is created, this could be an enhancement to remove the need to script it out yourself and configure it in the Settings UI instead (possibly as an extension).
Perhaps when the Settings UI is created, this could be an enhancement to remove the need to script it out yourself and configure it in the Settings UI instead (possibly as an extension).
Thanks for the response. I figured there was a way to script it. I was hoping to be able to do it through the UI.
They're still going over the spec https://github.com/microsoft/terminal/pull/6720. Once that's been flushed out, they'll begin implementing it. I'm sure they'd appreciate any feedback regarding this feature request.
As @WSLUser points out, you can use the wt commandline currently do do a little bit of this. I actually have a profile with the following:
{
"name": "Good Morning",
"commandline": "cmd.exe /k wt cmd.exe /k #work 15 ; split-pane cmd.exe /k #work 15 ; split-pane -H cmd.exe /k media-commandline ; new-tab powershell dev\\symbols.ps1 ; new-tab -p \"Ubuntu 18.04\" ; new-tab -p \"microsoft/Terminal\" ; focus-tab -t 0",
}
which opens up 4 tabs, and the first has 3 panes, for my initial dev environment. This unfortunately opens it in a new window currently, but it _works for me_. We've got lots of plans on how to improve this:
wt commandline: #6537 edit: you know what, I'm just gonna close this thread as a duplicate of the combined sum of all the other threads listed, since they seem to cover this scenario pretty well.
/dup #756
/dup #6537
/dup #5970
/dup #1571
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!
Most helpful comment
As @WSLUser points out, you can use the
wtcommandline currently do do a little bit of this. I actually have a profile with the following:which opens up 4 tabs, and the first has 3 panes, for my initial dev environment. This unfortunately opens it in a new window currently, but it _works for me_. We've got lots of plans on how to improve this:
wtcommandline: #6537edit: you know what, I'm just gonna close this thread as a duplicate of the combined sum of all the other threads listed, since they seem to cover this scenario pretty well.
/dup #756
/dup #6537
/dup #5970
/dup #1571