Dynamically resizing containers with mouse events? #4230
-
Is there a way with Textual layout to have the window split into two panes, left and right, and allow resizing the widths of the two panes by clicking with the mouse and dragging? That is, I'm looking to add similar functionality to a Textual app that you get from Vim splits or tmux panes, where you can easily resize them with the mouse. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
There isn't anything built into Textual that directly supports this. I have seen at least one application built with Textual where the author has made this a feature though (sadly I can't remember which, or where I saw it -- perhaps here in GitHub discussions or it might have been mentioned in the #show-and-tell channel on the Textualize Discord server). |
Beta Was this translation helpful? Give feedback.
-
If someone makes a draggable pane (the kind in Tmux) - please send a pull request - this is a feature I REALLY REALLY want lol |
Beta Was this translation helpful? Give feedback.
There isn't anything built into Textual that directly supports this. I have seen at least one application built with Textual where the author has made this a feature though (sadly I can't remember which, or where I saw it -- perhaps here in GitHub discussions or it might have been mentioned in the #show-and-tell channel on the Textualize Discord server).