The ability to toggle the split direction of a pane #14523

Closed
opened 2026-01-31 04:12:39 +00:00 by claunia · 7 comments
Owner

Originally created by @Rosefield on GitHub (Jul 15, 2021).

Description of the new feature/enhancement

Once a pane was split, it would be nice to change the orientation of that split. Having a hotkey to toggle the split orientation of the currently active pane would allow changing how the terminal looks without needing to close and recreate a terminal.
E.G.
Create two panes

image

and then swap them to look like

image

and vice versa.

Proposed technical implementation details (optional)

Originally created by @Rosefield on GitHub (Jul 15, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement Once a pane was split, it would be nice to change the orientation of that split. Having a hotkey to toggle the split orientation of the currently active pane would allow changing how the terminal looks without needing to close and recreate a terminal. E.G. Create two panes ![image](https://user-images.githubusercontent.com/6185249/125710656-995258d2-a8fc-4495-ab45-ac3dc29594ca.png) and then swap them to look like ![image](https://user-images.githubusercontent.com/6185249/125710709-3105a776-5be6-482c-a3a0-acdbdd950245.png) and vice versa. <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
Author
Owner

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

Oh huh, I suppose we don't have a issue for this one in #1000 yet. This doesn't seem too hard, wire up a keybinding, and just toggle the orientation of the split on the parent of the active pane. Easy enough!

@zadjii-msft commented on GitHub (Jul 15, 2021): Oh huh, I suppose we don't have a issue for this one in #1000 yet. This doesn't seem too hard, wire up a keybinding, and just toggle the orientation of the split on the parent of the active pane. Easy enough!
Author
Owner

@NishantChandla commented on GitHub (Jul 16, 2021):

@zadjii-msft I would like to take up this issue. What hotkey should be set to toggle split direction?

@NishantChandla commented on GitHub (Jul 16, 2021): @zadjii-msft I would like to take up this issue. What hotkey should be set to toggle split direction?
Author
Owner

@jelonmusk commented on GitHub (Jul 16, 2021):

Hi
I am a rookie contributor. This might sound silly but should the feature be developed in a specific language only or any programming language can be used?

@jelonmusk commented on GitHub (Jul 16, 2021): Hi I am a rookie contributor. This might sound silly but should the feature be developed in a specific language only or any programming language can be used?
Author
Owner

@zadjii-msft commented on GitHub (Jul 19, 2021):

@NishantChandla / @jelonmusk go right ahead!

I don't think we really want to have this bound to a key by default right now. If you create an action like togglePaneOrientation, once it's all wired up, you should be able to execute the action through the Command Palette without needing to bind a dedicated key for it.

This might sound silly but should the feature be developed in a specific language only or any programming language can be used?

The entire Terminal is written in C++, so you'll have to use that.

@zadjii-msft commented on GitHub (Jul 19, 2021): @NishantChandla / @jelonmusk go right ahead! I don't think we really want to have this bound to a key by default right now. If you create an action like `togglePaneOrientation`, once it's all wired up, you should be able to execute the action through the Command Palette without needing to bind a dedicated key for it. > This might sound silly but should the feature be developed in a specific language only or any programming language can be used? The entire Terminal is written in C++, so you'll have to use that.
Author
Owner

@Rosefield commented on GitHub (Jul 19, 2021):

@NishantChandla @jelonmusk if you two choose not to do this task I was also planning on doing it, just let me know.

@Rosefield commented on GitHub (Jul 19, 2021): @NishantChandla @jelonmusk if you two choose not to do this task I was also planning on doing it, just let me know.
Author
Owner

@NishantChandla commented on GitHub (Jul 19, 2021):

@Rosefield As you have created the issue, you can work on this!

@NishantChandla commented on GitHub (Jul 19, 2021): @Rosefield As you have created the issue, you can work on this!
Author
Owner

@ghost commented on GitHub (Aug 31, 2021):

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

Handy links:

@ghost commented on GitHub (Aug 31, 2021): :tada:This issue was addressed in #10713, which has now been successfully released as `Windows Terminal Preview v1.11.2421.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.11.2421.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#14523