Panes should be resizable with the mouse #1332

Open
opened 2026-01-30 22:22:48 +00:00 by claunia · 12 comments
Owner

Originally created by @zadjii-msft on GitHub (May 24, 2019).

Originally assigned to: @zadjii-msft on GitHub.

Probably depends on #991 getting done first

Drag a separator to (recursively) resize the panes that are separated by that separator.

Originally created by @zadjii-msft on GitHub (May 24, 2019). Originally assigned to: @zadjii-msft on GitHub. Probably depends on #991 getting done first Drag a separator to (recursively) resize the panes that are separated by that separator.
Author
Owner

@carlos-zamora commented on GitHub (May 12, 2020):

Assigning to myself for now. I imagine it won't be too difficult. If anybody would like to take a crack at it though, feel free to let me know and we could just do a handoff. 😊

@carlos-zamora commented on GitHub (May 12, 2020): Assigning to myself for now. I imagine it won't be _too_ difficult. If anybody would like to take a crack at it though, feel free to let me know and we could just do a handoff. 😊
Author
Owner

@jonasnordlund commented on GitHub (May 28, 2020):

One idea I have would be to not even require a user to target a potentially thin separator, but while holding down Alt (to retain the theme with the pane key bindings) and dragging the mouse up and down over one horizontally split pane, resize that one height wise. And the same when moving the mouse left and right over a vertically split pane.

@jonasnordlund commented on GitHub (May 28, 2020): One idea I have would be to not even require a user to target a potentially thin separator, but while holding down Alt (to retain the theme with the pane key bindings) and dragging the mouse up and down over one horizontally split pane, resize that one height wise. And the same when moving the mouse left and right over a vertically split pane.
Author
Owner

@moswald commented on GitHub (Nov 12, 2020):

It would be nice if, while resizing, a percent or pixel adornment showed up that indicates the new sizes for both panes.

@moswald commented on GitHub (Nov 12, 2020): It would be nice if, while resizing, a percent or pixel adornment showed up that indicates the new sizes for both panes.
Author
Owner

@wardboumans commented on GitHub (Sep 2, 2021):

Any update on this? Its the one thing missing for me.

@wardboumans commented on GitHub (Sep 2, 2021): Any update on this? Its the one thing missing for me.
Author
Owner

@zadjii-msft commented on GitHub (Sep 2, 2021):

Nope. We'll make sure to update this thread when there is. In the meantime, might I recommend the Subscribe button?
image
That way you'll be notified of any updates to this thread, without needlessly pinging everyone on this thread ☺️

@zadjii-msft commented on GitHub (Sep 2, 2021): Nope. We'll make sure to update this thread when there is. In the meantime, might I recommend the Subscribe button? ![image](https://user-images.githubusercontent.com/18356694/91237459-5cbb0c80-e700-11ea-9347-b9b1ec2813b1.png) That way you'll be notified of any updates to this thread, without needlessly pinging everyone on this thread ☺️
Author
Owner

@mbalc commented on GitHub (Apr 18, 2023):

still waiting for this, almost 4 years passed...

@mbalc commented on GitHub (Apr 18, 2023): still waiting for this, almost 4 years passed...
Author
Owner

@zadjii-msft commented on GitHub (Apr 18, 2023):

Yep, we haven't had a chance to loop back on this, though we'd love the the contribution if you're interested!

Note

Walkthrough

I don't think it'd be terribly difficult to resurrect the same approach (but base it off main since my original branch is nearly 4 years old now.

@zadjii-msft commented on GitHub (Apr 18, 2023): Yep, we haven't had a chance to loop back on this, though we'd love the the contribution if you're interested! > **Note** > ## Walkthrough * Last time I tried this was in https://github.com/microsoft/terminal/compare/main...dev/migrie/f/drag-panes. IIRC, there were some scaling issues with mouse drags in XAML islands back then. I think those are mostly resolved these days. * Carlos also tried this again in [`dev/cazamor/drag-panes`](https://github.com/microsoft/terminal/commit/21474792a269bb4a481dd868d93fc7ce281244c2). I don't know how successful that was. I don't think it'd be terribly difficult to resurrect the same approach (but base it off `main` since my original branch is nearly 4 years old now.
Author
Owner

@davea38 commented on GitHub (Sep 20, 2023):

Massively agree with this new feature! Resizing via the keyboard is annoying. Also there are currently too many keyboard shortcuts to remember for an old man such as myself :>

@davea38 commented on GitHub (Sep 20, 2023): Massively agree with this new feature! Resizing via the keyboard is annoying. Also there are currently too many keyboard shortcuts to remember for an old man such as myself :>
Author
Owner

@bradphelan commented on GitHub (Jan 11, 2024):

I think dragging the panes is the wrong UX. It's always a pain the try and get the tiny mouse sitting on the tiny drag bar. The alternative is to make the drag bar thicker and waste terminal space. I propose an alterative. We already have

to change the font size. If we add

and instead of changing font size, it resizes the pane. The location of the mouse itself gives the hint as to where to resize. left, right, up down.

This could easily be solved with a few more key modifiers. Unfortunately 'keys' don't include mouse modifiers.

image

If the keys could also handle mouse actions as well then the above could be implemented by the user.

@bradphelan commented on GitHub (Jan 11, 2024): I think dragging the panes is the wrong UX. It's always a pain the try and get the tiny mouse sitting on the tiny drag bar. The alternative is to make the drag bar thicker and waste terminal space. I propose an alterative. We already have <ctrl-mouse-wheel> to change the font size. If we add <ctrl-alt-mouse-wheel> and instead of changing font size, it resizes the pane. The location of the mouse itself gives the hint as to where to resize. left, right, up down. This could easily be solved with a few more key modifiers. [Unfortunately 'keys' don't include mouse modifiers.](https://learn.microsoft.com/en-us/windows/terminal/customize-settings/actions#accepted-modifiers-and-keys) ![image](https://github.com/microsoft/terminal/assets/17650/0ef36b00-0f3b-4bb8-8ede-5415f051a1c8) If the keys could also handle mouse actions as well then the above could be implemented by the user.
Author
Owner

@anashakt commented on GitHub (May 10, 2024):

I agree. We need this feature

@anashakt commented on GitHub (May 10, 2024): I agree. We need this feature
Author
Owner

@DHowett commented on GitHub (Aug 22, 2024):

Punted to 1.23.

@DHowett commented on GitHub (Aug 22, 2024): Punted to 1.23.
Author
Owner

@progressive-galib commented on GitHub (Nov 14, 2024):

hi is this working and available in stable version ? how do i drag pane divider in windows terminal ? do i have to press Alt or any other keyboard key while dragging pane divider ?

@progressive-galib commented on GitHub (Nov 14, 2024): hi is this working and available in stable version ? how do i drag pane divider in windows terminal ? do i have to press Alt or any other keyboard key while dragging pane divider ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1332