tmuxp icon indicating copy to clipboard operation
tmuxp copied to clipboard

Add a "zoomed" pane option

Open jrjsmrtn opened this issue 7 years ago • 4 comments

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.

jrjsmrtn avatar Nov 09 '18 11:11 jrjsmrtn

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

jrjsmrtn avatar Nov 09 '18 12:11 jrjsmrtn

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!

Blake-LeBlanc avatar Feb 14 '19 21:02 Blake-LeBlanc

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.

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 .

jrjsmrtn avatar Feb 15 '19 08:02 jrjsmrtn

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

Blake-LeBlanc avatar Feb 15 '19 15:02 Blake-LeBlanc