wt.exe should support -%,--percent for setting a pane's size on the commandline #8736

Closed
opened 2026-01-31 01:36:42 +00:00 by claunia · 6 comments
Owner

Originally created by @zadjii-msft on GitHub (Jun 1, 2020).

Originally assigned to: @zadjii-msft on GitHub.

See also #4632.

This was in the spec but hasn't been implemented yet. Basically just wt ; split-pane -% 30 cmd to open the Terminal with two panes, one that's 70% of the available size, and the other that's got 30%.

Or wt ; split-pane -% 30 cmd, split-pane -% 70 wsl for three panes, one with 70/30 split, and the 30 is then split into 30/70, kinda like:

+-------------------+-------+
|                   |       |
|                   |       |
|                   +-------+
|                   |       |
|                   |       |
|                   |       |
|                   |       |
|                   |       |
|                   |       |
+-------------------+-------+

Originally created by @zadjii-msft on GitHub (Jun 1, 2020). Originally assigned to: @zadjii-msft on GitHub. See also #4632. This was in the spec but hasn't been implemented yet. Basically just `wt ; split-pane -% 30 cmd` to open the Terminal with two panes, one that's 70% of the available size, and the other that's got 30%. Or `wt ; split-pane -% 30 cmd, split-pane -% 70 wsl` for three panes, one with 70/30 split, and the 30 is then split into 30/70, kinda like: ``` +-------------------+-------+ | | | | | | | +-------+ | | | | | | | | | | | | | | | | | | +-------------------+-------+ ```
Author
Owner

@DHowett commented on GitHub (Jun 2, 2020):

Triaged onto backlog; tracked through 4632.

@DHowett commented on GitHub (Jun 2, 2020): Triaged onto backlog; tracked through 4632.
Author
Owner

@MagikEh commented on GitHub (Nov 11, 2020):

Likewise, when using the wt command to open multiple split-panes at once, It'd be nice to automatically balance between those as default rather than going all Fibonacci
Current Default vs Proposed:

+--------------+      +--------------+
|              |      |              |
|              |      |              |
|              |      +--------------+
|              |      |              |
+--------------+  vs  |              |
|              |      +--------------+
|              |      |              |
+--------------+      |              |
|              |      +--------------+
+--------------+      |              |
|              |      |              |
+--------------+      +--------------+
@MagikEh commented on GitHub (Nov 11, 2020): Likewise, when using the `wt` command to open multiple split-panes at once, It'd be nice to automatically balance between those as default rather than going all Fibonacci Current Default vs Proposed: ``` +--------------+ +--------------+ | | | | | | | | | | +--------------+ | | | | +--------------+ vs | | | | +--------------+ | | | | +--------------+ | | | | +--------------+ +--------------+ | | | | | | +--------------+ +--------------+
Author
Owner

@zadjii-msft commented on GitHub (Nov 12, 2020):

@MagikEh That might be more possible once #6002 is implemented

@zadjii-msft commented on GitHub (Nov 12, 2020): @MagikEh That might be more possible once #6002 is implemented
Author
Owner

@oising commented on GitHub (Dec 18, 2020):

FYI, PowerShell uses --% as a hint to stop parsing arguments to find variable substitutions etc. I know that's not the same as single hyphen -% but just so you know.

@oising commented on GitHub (Dec 18, 2020): FYI, PowerShell uses `--%` as a hint to stop parsing arguments to find variable substitutions etc. I know that's not the same as single hyphen `-%` but just so you know.
Author
Owner

@zadjii-msft commented on GitHub (Dec 18, 2020):

@oising That's part of the reason I actually ended up implementing this as --size,-s instead, because % is tricky like that 😝

@zadjii-msft commented on GitHub (Dec 18, 2020): @oising That's part of the reason I actually ended up implementing this as `--size,-s` instead, because `%` is tricky like that 😝
Author
Owner

@ghost commented on GitHub (Jan 28, 2021):

:tada:This issue was addressed in #8543, which has now been successfully released as Windows Terminal Preview v1.6.10272.0.🎉

Handy links:

@ghost commented on GitHub (Jan 28, 2021): :tada:This issue was addressed in #8543, which has now been successfully released as `Windows Terminal Preview v1.6.10272.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.6.10272.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8736