MicrosoftDocs / terminal

Creative Commons Attribution 4.0 International
468 stars 170 forks source link

splited pans in JSON configuration profile #699

Closed StoryDevOffical closed 10 months ago

StoryDevOffical commented 10 months ago

Hi there,

I would to create a new profile with 1 tab and 3 horizontally split pan. I can achieve it manually but i want to template it in a JSON profile. I already have a profile with 3 tabs, but it's not what i want.

Either here or here, any documentation found for Full JSON configuration reference.

have tried some things from ChatGPT but it does not work

"actions": [
    {
      "command": {
        "action": "splitPane",
        "split": "vertical",
        "commandline": "ssh -t user@host 'htop'"
      },
      "name": "Split 1"
    },
    {
      "command": {
        "action": "splitPane",
        "split": "vertical",
        "commandline": "ssh -t vuser@host 'htop'"
      },
      "name": "Split 2"
    },
    {
      "command": {
        "action": "splitPane",
        "split": "vertical",
        "commandline": "ssh -t user@host 'htop'"
      },
      "name": "Split 3"
    }
  ],
"splitMode": "horizontal",
"splitDirection": "bottom",
"splits": [
    {
        "commandline": ,
        "split": "auto"
    },
    {
        "commandline": ,
        "split": "auto"
    },
    {
        "commandline": ,
        "split": "auto"
    }
],

On another hand, is it possible to save a current tab in a new profile (and then create a new JSON configuration) ?

have a nice day,

zadjii-msft commented 10 months ago

have tried some things from ChatGPT but it does not work

lmao why though. LLMs are fun suggestions but not usually a good source of definitive truth.

This isn't supported yet. We're tracking this request in https://github.com/microsoft/terminal/issues/3759

StoryDevOffical commented 10 months ago

lmao why though. LLMs are fun suggestions but not usually a good source of definitive truth.

LLMs can be useful in solving configuration problems for basic features. No one here has considered them as a source of absolute truth.