Is there a way to shrink this command? #15854

Closed
opened 2026-01-31 04:50:26 +00:00 by claunia · 5 comments
Owner

Originally created by @Dosx001 on GitHub (Nov 12, 2021).

{ "command": { "action": "multipleActions",
    "actions": [
        { "action": "splitPane", "split": "vertical" },
        { "action": "resizePane", "direction": "left" },
        { "action": "resizePane", "direction": "left" },
        { "action": "resizePane", "direction": "left" },
        { "action": "resizePane", "direction": "left" },
        { "action": "resizePane", "direction": "left" }
    ]},
    "keys": "ctrl+shift+s"
}

Something like this?

{ "command": { "action": "multipleActions",
    "actions": [
        { "action": "splitPane", "split": "vertical" },
        { "action": "resizePane", "direction": "left", "amount" : 5 },
    ]},
    "keys": "ctrl+shift+s"
}
Originally created by @Dosx001 on GitHub (Nov 12, 2021). ```json { "command": { "action": "multipleActions", "actions": [ { "action": "splitPane", "split": "vertical" }, { "action": "resizePane", "direction": "left" }, { "action": "resizePane", "direction": "left" }, { "action": "resizePane", "direction": "left" }, { "action": "resizePane", "direction": "left" }, { "action": "resizePane", "direction": "left" } ]}, "keys": "ctrl+shift+s" } ``` Something like this? ```json { "command": { "action": "multipleActions", "actions": [ { "action": "splitPane", "split": "vertical" }, { "action": "resizePane", "direction": "left", "amount" : 5 }, ]}, "keys": "ctrl+shift+s" } ```
claunia added the Issue-QuestionNeeds-TriageNeeds-Tag-FixResolution-Answered labels 2026-01-31 04:50:26 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Nov 15, 2021):

splitPane already accepts a size parameter, to configure what percent of the parent you want the new pane to take. So you probably want something like

{ 
    "command": { "action": "splitPane", "split": "vertical", "size": 0.75 },
    "keys": "ctrl+shift+s"
}
@zadjii-msft commented on GitHub (Nov 15, 2021): [`splitPane`](https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions#split-a-pane) already accepts a `size` parameter, to configure what percent of the parent you want the new pane to take. So you probably want something like ```json { "command": { "action": "splitPane", "split": "vertical", "size": 0.75 }, "keys": "ctrl+shift+s" } ```
Author
Owner

@Dosx001 commented on GitHub (Nov 15, 2021):

@zadjii-msft Thank you!!! I can't find it in the documentation or anywhere. Might wanna update the documentation to include this. https://docs.microsoft.com/en-us/windows/terminal/panes

@Dosx001 commented on GitHub (Nov 15, 2021): @zadjii-msft Thank you!!! I can't find it in the documentation or anywhere. Might wanna update the documentation to include this. https://docs.microsoft.com/en-us/windows/terminal/panes
Author
Owner

@zadjii-msft commented on GitHub (Nov 15, 2021):

image

@zadjii-msft commented on GitHub (Nov 15, 2021): ![image](https://user-images.githubusercontent.com/18356694/141817459-2bbea521-8c6d-4ac8-9e8e-7ccee28488f2.png)
Author
Owner

@Dosx001 commented on GitHub (Nov 15, 2021):

@zadjii-msft huh, I never check out this page. I will read it later, thank you. But it would have been really nice if was in was in this page https://docs.microsoft.com/en-us/windows/terminal/panes or maybe some redirection to the page you show me.

@Dosx001 commented on GitHub (Nov 15, 2021): @zadjii-msft huh, I never check out this page. I will read it later, thank you. But it would have been really nice if was in was in this page https://docs.microsoft.com/en-us/windows/terminal/panes or maybe some redirection to the page you show me.
Author
Owner

@zadjii-msft commented on GitHub (Nov 15, 2021):

The Panes page actually does have a link to the keybindings in it:
image

@zadjii-msft commented on GitHub (Nov 15, 2021): The Panes page actually does have a link to the keybindings in it: ![image](https://user-images.githubusercontent.com/18356694/141820840-972e164b-b4c5-4b7b-8fbc-5a0233780b5d.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15854