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

Suggestion: Open a new terminal window with a collection of preconfigured tabs #8989

Closed
NeilMacMullen opened this issue Feb 1, 2021 · 5 comments
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@NeilMacMullen
Copy link

Motivation:

If I perform a common task involving multiple tabs, I usually spend some time to color and name the tabs to make it it obvious which tab is which. For example.

colortabs

It would be convenient if I could store this particular configuration the next day and recall it.

From a user-perspective something like:--

  • Click on shell menu drop-down.
  • Select "Save Collection"
    • Configuration is saved to some config file

Next day...

  • Double click on configuration file
  • new Shell window opens with saved tabs

At a minimum the "collection/configuration" should recreate the number and types of tabs + header colors and names. It would be desirable if additional context for each tab could be maintained (cwd, buffer history, other?)

I'm pretty sure I can do most of this stuff already by writing some dedicated scripts - maybe a cheap implementation of this would be for the "config file" just to be a script that performs the required operations when the shell starts up?

@NeilMacMullen NeilMacMullen added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Feb 1, 2021
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Feb 1, 2021
@NeilMacMullen NeilMacMullen changed the title Provide a way of opening a new terminal window with a collection of preconfigured tabs Suggestion: Open a new terminal window with a collection of preconfigured tabs Feb 1, 2021
@WSLUser
Copy link
Contributor

WSLUser commented Feb 1, 2021

Use the wt arguments. There is enhancement request to specify color names but colors are supported. See the docs: https://docs.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows.

Also, the docs are listed in the README. I highly advise looking through them before filing a feature request in the future.

@NeilMacMullen
Copy link
Author

NeilMacMullen commented Feb 1, 2021

Also, the docs are listed in the README. I highly advise looking through them before filing a feature request in the future.

Thanks for the useful information but I think the response is unnecessarily snarky :-( If you read my feature request in full you will see that I am suggesting that the current configuration could be saved automatically via a menu item or context action. That clearly is not provided today so I think that would be classed as a "new feature request"....

@zadjii-msft
Copy link
Member

So for reference, I like to do like the following each time I boot up the Terminal in the morning:

        { "command": { "action": "wt", "commandline": "new-tab --title OpenConsole cmd.exe /k #work 15 ; split-pane -s .30 --title OpenConsole cmd.exe /k #work 15 ; split-pane  -s .25 -H cmd.exe /k media ; new-tab --title \"Symbols Script\" powershell dev\\symbols.ps1 ; new-tab -p \"Ubuntu 18.04\" ; new-tab -p \"microsoft/Terminal\" ; sp -V -p \"microsoft/Terminal\" ; sp -H -p \"microsoft/Terminal\" ; focus-tab -t 0" }, "name": "Good Morning" },

(you could probably make it shorter by replacing new-tab/split-pane with nt/sp, respectively).

I add that to the keybindings/actions, and invoke it with the Command Palette. That opens up a few tabs & panes, running various build environments. I like having it in a command rather than startupActions, because I only really want this in one terminal window, not every single one I launch. It's personal taste. It's probably the closest you'll get to what you want today.

As far as automatically saving the last window state, we've got #960, #961, #766. #766 is probably the one that most closely mirrors your ask.

I'd also check out #756, though that kinda just turned into startupActions, so I might close that one out.

/dup #766

@ghost
Copy link

ghost commented Feb 1, 2021

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 ghost closed this as completed Feb 1, 2021
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Feb 1, 2021
@NeilMacMullen
Copy link
Author

Nice - thanks Mike. I agree that #766 covers it.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

3 participants