Add a "zoomed" pane option
If I'm not mistaken, there is no way to zoom a specific pane when loading a tmuxp session. That would be a nice addition.
As a workaround, I just realized that I could perform a tmux resize-pane -Z as the first shell_command of the pane I want zoomed...
As a workaround, I just realized that I could perform a
tmux resize-pane -Zas the firstshell_commandof the pane I want zoomed...
Would you provide an example? I'm trying to accomplish the same thing and the shell_command doesn't seem to be working... Thanks!
Here is an example:
- window_name: shell
layout: even-horizontal
options:
automatic-rename: false
panes:
- focus: true
shell_command:
- tmux resize-pane -Z
- mc
- ipython
- focus: true
shell_command:
But... in fact it doesn't work as I expected: "resize-pane -Z" works as a toggle.
On Thu, Feb 14, 2019 at 10:17 PM Blake-LeBlanc [email protected] wrote:
As a workaround, I just realized that I could perform a tmux resize-pane -Z as the first shell_command of the pane I want zoomed...
Would you provide an example? I'm trying to accomplish the same thing and the shell_command doesn't seem to be working... Thanks!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tmux-python/tmuxp/issues/454#issuecomment-463800536, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJUPPwMEL5jueFGrIeovl_9CtXQBdO2ks5vNdJngaJpZM4YWajx .
Here is an example: - window_name: shell layout: even-horizontal options: automatic-rename: false panes: - focus: true shell_command: - tmux resize-pane -Z - mc - ipython But... in fact it doesn't work as I expected: "resize-pane -Z" works as a toggle.
Thank you @jrjsmrtn! It's an odd thing... Whenever I manually type out the command in the terminal, the zoom happens as expected. But for some reason, whenever tmuxp includes the command as part of the shell_command, it doesn't seem to do anything even though I can clearly see the command was executed...
Maybe it has something to do with the "toggle", as you pointed out. I'll keep messing with it, thank you again for your quick reply!
UPDATE: I just noticed the version hosted by apt is only 1.3.5, I'll go another route to get the latest version to see if that helps!
UPDATE2: Now running 1.5.0 and the issue persists