fabiospampinato / vscode-terminals

An extension for setting-up multiple terminals at once, or just running some commands.
MIT License
121 stars 20 forks source link

Support for groups #12

Open fabiospampinato opened 6 years ago

fabiospampinato commented 6 years ago

We should add support for groups, this would allow us to group some terminals together. The benefits are better organization and the ability to run more than one terminal, but not all of them, at the same time.

The quickpick would look something similar to this (Gif taken from Projects+):

Groups

tnrich commented 4 years ago

This would be an awesome feature!

zirkelc commented 2 years ago

Would be a great feature for teams working in one mono-repository.

gigamesh commented 1 year ago

Would love support for groups!

cssinate commented 1 year ago

In order to not break existing configs, I'd propose a key like

{
  "name": "This Terminal"
  "runWith": ["Other Terminal 1", "OT2"]
}

If This Terminal is onlySingle: false then we check the onlySingle status of Other Terminal 1 and OT2 and if one of the terminals inside runWith also has onlySingle: false then we can safely ignore it when Terminals: Run is executed. We then ensure we run them if This Terminal is launched with Terminals: Run Single.

cssinate commented 1 year ago

The workaround I came up with requires adding a keybinding. See here: https://github.com/fabiospampinato/vscode-terminals/issues/82#issuecomment-1652061990