Support resizing layouts #9

Open
opened 2025-06-09 09:17:16 +00:00 by benie · 0 comments
Owner

When using layouts with remote sessions the local terminal window size may differ. This can cause layouts to have incorrectly sized splits. Newer versions of tmux support the provision of a percentage to the split-pane command, e.g.:

tmux resize-pane -t{left} -x "43%"

Update the layout command to take -r/--refresh flag, which should be passed on to layout scripts, to activate the necessary resize-pane commands and make the layout as if freshly created.

When using layouts with remote sessions the local terminal window size may differ. This can cause layouts to have incorrectly sized splits. Newer versions of `tmux` support the provision of a percentage to the `split-pane` command, e.g.: ``` tmux resize-pane -t{left} -x "43%" ``` Update the `layout` command to take `-r`/`--refresh` flag, which should be passed on to layout scripts, to activate the necessary `resize-pane` commands and make the layout as if freshly created.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: config/tmux#9
No description provided.