Skip to content

tmux percentage pane sizing #525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
deliciouslytyped opened this issue Dec 20, 2019 · 1 comment
Open

tmux percentage pane sizing #525

deliciouslytyped opened this issue Dec 20, 2019 · 1 comment

Comments

@deliciouslytyped
Copy link

I was peeking through the tmux 3.0 changelogs and this entry caught my eye:

* Add support for percentage sizes for resize-pane ("-x 10%"). Also change
  split-window and join-pane -l to accept similar percentages and no longer
  document -p.

If that is what I think it is, it would be interesting to have support for such relative sizes in tmuxp.

@denisw
Copy link

denisw commented Jan 5, 2023

It seems as if percentage sizes work just fine with the existing tmuxp size options. I just tried the following successfully:

session_name: percentage-pane-size
windows:
  - window_name: example
    layout: main-vertical
    options:
      main-pane-width: '60%'
    panes:
      -
      -

That being said, it would be great if such a percentage were used by default for main-pane-width / main-pane-height, to avoid the situation on large screens were the "main" pane is actually much smaller than the other ones (see #314).

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

No branches or pull requests

3 participants