terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Panes should be resizable with the mouse

Open zadjii-msft opened this issue 6 years ago • 12 comments

Probably depends on #991 getting done first

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

zadjii-msft avatar May 24 '19 19:05 zadjii-msft

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 avatar May 12 '20 20:05 carlos-zamora

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 avatar May 28 '20 20:05 jonasnordlund

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

moswald avatar Nov 12 '20 15:11 moswald

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

wardboumans avatar Sep 02 '21 14:09 wardboumans

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 avatar Sep 02 '21 14:09 zadjii-msft

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

mbalc avatar Apr 18 '23 10:04 mbalc

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. 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.

zadjii-msft avatar Apr 18 '23 10:04 zadjii-msft

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 avatar Sep 20 '23 11:09 davea38

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 avatar Jan 11 '24 08:01 bradphelan

I agree. We need this feature

anashakt avatar May 10 '24 13:05 anashakt

Punted to 1.23.

DHowett avatar Aug 22 '24 16:08 DHowett