Skip to content

Add a "zoomed" pane option #454

@jrjsmrtn

Description

@jrjsmrtn

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.

Activity

jrjsmrtn

jrjsmrtn commented on Nov 9, 2018

@jrjsmrtn
Author

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

Blake-LeBlanc

Blake-LeBlanc commented on Feb 14, 2019

@Blake-LeBlanc

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!

jrjsmrtn

jrjsmrtn commented on Feb 15, 2019

@jrjsmrtn
Author
Blake-LeBlanc

Blake-LeBlanc commented on Feb 15, 2019

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

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

added
new-featurePossible interesting new feature to be considered for implementation.
on Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-featurePossible interesting new feature to be considered for implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jrjsmrtn@Blake-LeBlanc@joseph-flinn

        Issue actions

          Add a "zoomed" pane option · Issue #454 · tmux-python/tmuxp