Skip to content

feat: added size config to resize tmux panes#21

Merged
MSmaili merged 1 commit into
MSmaili:mainfrom
cgimenes:main
Mar 7, 2026
Merged

feat: added size config to resize tmux panes#21
MSmaili merged 1 commit into
MSmaili:mainfrom
cgimenes:main

Conversation

@cgimenes

@cgimenes cgimenes commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

This pull request adds support for specifying a custom pane size when creating or splitting tmux panes in the Wiremux backend. The main changes introduce an optional size parameter to the configuration, update the pane creation logic to use this parameter, and add a new helper function for resizing panes.

Support for custom pane sizing:

  • Added an optional size field to the pane configuration, allowing users to specify a custom tmux pane size. (lua/wiremux/config.lua)
  • Updated the pane creation logic to check for the size parameter and insert a resize command after splitting a pane if a custom size is specified. (lua/wiremux/backend/tmux/operation.lua)

Internal API improvements:

  • Added a new resize_pane function to construct the appropriate tmux command for resizing panes, supporting both horizontal and vertical directions and optional pane targeting. (lua/wiremux/backend/tmux/action.lua)

@MSmaili MSmaili merged commit 7e5fefc into MSmaili:main Mar 7, 2026
1 check passed
@MSmaili

MSmaili commented Mar 7, 2026

Copy link
Copy Markdown
Owner

@cgimenes, thank you for the PR appreciate it.

The PR is now merged.

@cgimenes

cgimenes commented Mar 7, 2026

Copy link
Copy Markdown
Contributor Author

Thank you for this great plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants