Save splits to the profile, splits via mouse resize #23499

Closed
opened 2026-01-31 08:44:00 +00:00 by claunia · 1 comment
Owner

Originally created by @Onepamopa on GitHub (Aug 4, 2025).

Description of the new feature

Hello,

It would be nice if each profile had the ability to be saved with specific split panes, maybe even a command to be executed in each pane when the profile is loaded.

I'm connecting to multiple servers via SSH (each server with its own specific splits) and being able to quickly reopen a tab that has all the necessary splits + connecting to the server via user@theserver and just waiting for the password to be entered - would be so much better. I.e. kind of the way "Tabby" @ github is doing it.

Also... resizing the splits - holding Alt or Ctrl and resizing with the mouse would be a lot more convenient than keyboard shortcuts.

Context menu right click in a pane - split left/right; top/bottom; close -- would also be welcome.

Proposed technical implementation details

Originally created by @Onepamopa on GitHub (Aug 4, 2025). ### Description of the new feature Hello, It would be nice if each profile had the ability to be saved with specific split panes, maybe even a command to be executed in each pane when the profile is loaded. I'm connecting to multiple servers via SSH (each server with its own specific splits) and being able to quickly reopen a tab that has all the necessary splits + connecting to the server via user@theserver and just waiting for the password to be entered - would be so much better. I.e. kind of the way "Tabby" @ github is doing it. Also... resizing the splits - holding Alt or Ctrl and resizing with the mouse would be a lot more convenient than keyboard shortcuts. Context menu right click in a pane - split left/right; top/bottom; close -- would also be welcome. ### Proposed technical implementation details -
claunia added the Issue-QuestionNeeds-TriageNeeds-Tag-FixResolution-Answered labels 2026-01-31 08:44:00 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 6, 2025):

Great requests! Lots of this is actually already possible. Lemme try and break down your requests:

  1. I want to specify tabs/panes in "a profile"
  2. I want to resize panes with the mouse
  3. I want to be able to have a right-click menu

I want to specify tabs/panes in "a profile"

This is doable today with both the wt action, and also with the (relatively new) ability to put actions into the new tab menu.

There are a couple bits to this. You'll need to add a couple different parts to your settings.json:

To your commands

        {
            "command": 
            {
                "action": "multipleActions",
                "actions": [
                    {
                        "action": "newTab",
                        "profile": "cmd"
                    },
                    {
                        "action": "splitPane",
                        "split": "auto",
                        "profile": "PowerShell Core"
                    }
                ]
            },
            "id": "GitHub.19208",
            "name": "My cool workspace"
        },

id can be anything. And you can add as many actions in actions as you want

To your newTabMenu

        {
            "type": "action",
            "id": "GitHub.19208",
        }

(make id the same here)

I want to resize panes with the mouse

This is tracked in #992

I want to be able to have a right-click menu

Enable this setting: Right click context menu

Image
@zadjii-msft commented on GitHub (Aug 6, 2025): Great requests! Lots of this is actually already possible. Lemme try and break down your requests: 1. I want to specify tabs/panes in "a profile" 2. I want to resize panes with the mouse 3. I want to be able to have a right-click menu ## I want to specify tabs/panes in "a profile" This is doable today with both the `wt` action, and also with the (relatively new) ability to put `actions` into the new tab menu. There are a couple bits to this. You'll need to add a couple different parts to your `settings.json`: #### To your `commands` ```jsonc { "command": { "action": "multipleActions", "actions": [ { "action": "newTab", "profile": "cmd" }, { "action": "splitPane", "split": "auto", "profile": "PowerShell Core" } ] }, "id": "GitHub.19208", "name": "My cool workspace" }, ``` `id` can be anything. And you can add as many `actions` in `actions` as you want #### To your `newTabMenu` ```jsonc { "type": "action", "id": "GitHub.19208", } ``` (make `id` the same here) ## I want to resize panes with the mouse This is tracked in #992 ## I want to be able to have a right-click menu Enable this setting: [Right click context menu](https://learn.microsoft.com/en-us/windows/terminal/customize-settings/profile-advanced#right-click-context-menu-preview) <img width="1440" height="989" alt="Image" src="https://github.com/user-attachments/assets/e6943c04-9ae9-4fc1-b698-443abe48ba08" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23499