fabiospampinato / vscode-terminals

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

Support terminals without a fixed title #68

Closed BryanDollery closed 1 year ago

BryanDollery commented 2 years ago

Hi, thanks for the plugin it's already saving me lots of time configuring my environment.

One thing though, my setup has a few terminals that I use for specific tasks, and a few that I might use during the day for various dev tasks in different directories. I like that vsc shows me the directory each terminal is in, but it only does this when the terminal is unnamed. I've tried creating a bunch of unnamed terminals using this plugin, but it only creates one. I suspect that you're using the name as an id. Is there any way to fix this? What I'm after is this:

{
  "autorun": true,
  "autokill": true,
  "env": {
    "name": "value"
  },
  "terminals": [
    {
      "name": "Git",
      "icon": "warning",
      "color": "terminal.ansiGreen",
      "cwd": "."
    },
    {
      "name": "Godzilla",
      "description": "Tokyo is in danger!!!",
      "icon": "gist-fork",
      "color": "termina.ansiRed",
      "cwd": "./test/event-godzilla"
    },
    {
      "name": "Mongo",
      "icon": "database",
      "color": "terminal.ansiCyan",
      "cwd": "./platform/mongodb"
    },
    {
      "name": "Test",
      "icon": "question",
      "color": "terminal.ansiBlue",
      "cwd": "./boundex-ctx/service-invoice/test"
    },
    {
      "name": "event adaptor",
      "icon": "terminal",
      "color": "terminal.ansiYellow",
      "cwd": "./platform/event-adaptor"
    },
    {
      "icon": "terminal",
      "color": "terminal.ansiYellow",
      "cwd": "."
    },
    {
      "icon": "terminal",
      "color": "terminal.ansiYellow",
      "cwd": "."
    },
    {
      "icon": "terminal",
      "color": "terminal.ansiYellow",
      "cwd": "."
    }
  ]
}
fabiospampinato commented 1 year ago

I think that's not supported yet, but I should probably add a flag for this 🤔

BryanDollery commented 1 year ago

Fabulous. Thanks for the fix.