-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Feature Request: Start with multiple tabs open #756
Comments
I'll repurpose this one to be the main feature request tracker for starting with multiple tabs. |
If this is more of a niche issue, perhaps there could be a json file in a folder to enter a list of profiles to load on startup? Or perhaps it could remember the last session before the app was closed? |
@mdtauk there is already the ability to add multiple profiles to the profiles.json configuration file, but you can currently only specify one of them as your defaultProfile, which is why you can only start with one tab |
Yes I am aware of the profiles.json, and I am sure that will get a GUI in the settings for the app soon. But you could change defaultProfile to have a list of profiles I suppose. Maybe in the GUI there could be an option in each profile's customisation page: [✔] Include this profile when starting Windows Terminal |
I'd rather have those settings spit into two different files: |
Lets try to reel things in before the discussion gets out of hand - a couple things mentioned here deserve their own threads to discuss them.
This is now #766
This is #641 I'm all for adding a setting for which tabs/panes & profiles to open with, though we'll probably need to keep "default profile" as a single profile GUID. |
I don't think that this is necessary if #766 is implemented. It would be more than covered by session resumption features. There's only one small edge case that I can think of:
However:
|
Hi @glen-84 |
I would second this. Whichever is the easier to tackle first should get out the door but the terminal is becoming a browser for CLI stuff basically (we have tabs just like an actual browser and can select different "websites" aka console apps) and thus needs to act as one accordingly. |
I would think the easiest way to implement this, and feel free to correct me if I am thinking to simplistically here, is to make defaultProfile a list, and iterate over it. If that is one tab or twelve. I could also see a usefulness instead of opening with multiple profiles, just make one Hotkey open multiple profiles. Then, I could setup multiple (hidden?) profiles for each project I am working on. To me, this method would be preferred. |
I would like a higher level grouping like a terminal workspace that reflects the project I'm working on in VS Code e.g. I would open a tab for dotnet API, ubuntu Angular, dotnet STS server etc. |
@joe-mills that sounds like a separate feature request and would require Windows Terminal to implement an API similar to VS Code to enable extensions. This is doable but effort. I wouldn't even consider trying to implement that until we at least have a stable v1 out the door. You'd constantly be having to change the way the API behaves until everything is settled down enough to know, "this is our baseline". |
@WSLUser yes I guess I was just agreeing that profile groups would be nice but thinking its probably too early to start adding these kind of quality of life features in before v1. It seemed like the extensions community was a great proving ground for features in vscode and the terminal app does lend itself to some kind of extension management system. Really enjoying the terminal right now though. |
from @zadjii-msft in #3037 (comment) |
To throw in my two cents on the comment above, I found this thread looking for a way to launch 3 tabs in a single shortcut, while opening another with a separate shortcut. For my dev environment I need to have 3+ cli programs running [klink (kitty cli), iisexpress, and ngrok], and I've just configured these to each be separate tabs, it would be great if I could create a shortcut to open those three, and another to open my WSL tab, so I don't have to choose one or the other. |
@zadjii-msft multiple panes would be a different issue request surely. Clicking the newTab button could open a new terminal matching the one to its left (but yes I do take your point :)). But this is an issue opened May 2019 with what appears to be a straightforward request "Start with multiple tabs open" and its frustrating when it gets derailed with additional capabilities (panes). ...rant over... |
Ah but see, part of my job is to make sure we design holistic solutions to problems. When there's such a obvious follow up feature, then it makes sense to think of not how to just solve the issue at hand, but also the follow up, in a single design. I don't want to have to build a solution for opening with multiple tabs, then build a solution for opening with multiple panes, then a solution for tabs, panes, and other actions, if it's clear from the onset where we want this feature to go. We've only got so many engineers on the team, so there's only so much we can work on at a time. This is still in-scope for 2.0, so don't worry, be patient! This will come SoonTM |
Tabs contain panes so surely its a necessary part of the original "Start with multiple tabs open". I think it gets confusing because currently profiles don't support multiple shells. The little plus button or launcher opens a profile as a tab or a pane which only makes sense when a profile is a single shell. All of the wt arguments to configure how a tab and panes open are already available for what most want, it seems like its more of a UI challenge. |
@joe-mills if you can specify several panes for a single profile, then that will just work? If not then I would suggest making that a different issue. Formal Spec II:
|
@GordonSmith I guess this might sound like a stupid question but what is a profile supposed to represent? |
Discussion that I had with @DHowett that I don't want to forget:
|
@zadjii-msft - what should be the behavior of
|
I'd expect that not by providing commandline args, that would override the We had discussed limiting I believe we also at one point discussed that |
Makes sense! If I you are OK with it, I will try to add something like this.. Sounds straightforward (famous last words). |
Just want to show up my case: |
Procedural solution for #756. Introduces a `startupActions` global setting. This setting is as string with the same format as actions in command line arguments. It is used only if command line arguments were not provided (aka running pure wt.exe). The setting allows implicit new-tabs. In the case of invalid syntax we show the warning dialog and ignore the setting. The documentation PR is here: MicrosoftDocs/terminal#217
Procedural solution for microsoft#756. Introduces a `startupActions` global setting. This setting is as string with the same format as actions in command line arguments. It is used only if command line arguments were not provided (aka running pure wt.exe). The setting allows implicit new-tabs. In the case of invalid syntax we show the warning dialog and ignore the setting. The documentation PR is here: MicrosoftDocs/terminal#217
You know, |
There are actually two issues:
|
When editing the profiles.json settings file, it is currently not possible to specify more than one defaultProfile. As a result, it is not possible to have the Terminal automatically start up with more than one tab. It would be extremely convenient, to be able to specify the 3 or 4 most commonly used command-line environments to all open up in separate tabs every time Terminal is started. This would e.g. give users the ability to always open up a Command Prompt, PowerShell, and Ubuntu shell all at the same time.
The text was updated successfully, but these errors were encountered: