Allow users to create a 'collection' of tabs that will open specified command lines with different starting directories. #9529

Closed
opened 2026-01-31 01:56:44 +00:00 by claunia · 6 comments
Owner

Originally created by @Mike-Becatti on GitHub (Jul 9, 2020).

Description of the new feature/enhancement

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.

Proposed technical implementation details (optional)

Originally created by @Mike-Becatti on GitHub (Jul 9, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement 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. <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 01:56:44 +00:00
Author
Owner

@WSLUser commented on GitHub (Jul 9, 2020):

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).

@WSLUser commented on GitHub (Jul 9, 2020): 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).
Author
Owner

@WSLUser commented on GitHub (Jul 9, 2020):

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).

@WSLUser commented on GitHub (Jul 9, 2020): 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).
Author
Owner

@Mike-Becatti commented on GitHub (Jul 9, 2020):

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.

@Mike-Becatti commented on GitHub (Jul 9, 2020): > 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.
Author
Owner

@WSLUser commented on GitHub (Jul 9, 2020):

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.

@WSLUser commented on GitHub (Jul 9, 2020): 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.
Author
Owner

@zadjii-msft commented on GitHub (Jul 9, 2020):

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:

  • Opening initially with a set group of panes/tabs: #756
  • Creating actions / commands for performing multiple tasks:
  • Customize the new tab dropdown to be able to include custom actions (like "open these 4 tabs...") #1571/#5888

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

@zadjii-msft commented on GitHub (Jul 9, 2020): 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: ```json { "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: * Opening initially with a set group of panes/tabs: #756 * Creating actions / commands for performing multiple tasks: - via a `wt` commandline: #6537 - via a list of actions: #5970 - once either of the above two are done, this will be exposed via the command palette, #5400 * Customize the new tab dropdown to be able to include custom actions (like "open these 4 tabs...") #1571/#5888 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
Author
Owner

@ghost commented on GitHub (Jul 9, 2020):

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 (Jul 9, 2020): 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9529