-
Notifications
You must be signed in to change notification settings - Fork 232
WorkspaceBuilder creates "main-horizontal" layout with a very thin main pane #667
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
Comments
I experience the same issue when tmuxp is invoked in the CLI with the YAML config file. YAML config file contentssession_name: primary
start_directory: ~/dev/
windows:
- window_name: window_one
focus: true
layout: main-horizontal
options:
main-pane-height: 42
panes:
- 'pane'
- 'pane'
- 'pane'
- window_name: window_two
layout: main-horizontal
options:
main-pane-height: 42
panes:
- 'pane'
- 'pane'
- 'pane'
- window_name: window_three
layout: main-horizontal
options:
main-pane-height: 42
panes:
- 'pane'
- 'pane'
- 'pane' tmuxp debug info
|
I'm experiencing the same issue with this config
and this yaml: session_name: some
start_directory: ./
windows:
- focus: 'true'
layout: main-horizontal
options:
main-pane-height: 35
panes:
- pane
- pane
- pane
window_name: foo |
Same here, any fix expected soon ? |
@varac I added labels to this and noted PRs are welcome. Any contributions with tests that makes tmuxp more robust is always something we're open to In future releases we will radically improve layouts as well. |
I updated from Focal (20.04), with tmux I did not get this on tmux On another system, it works fine: Ubuntu 21.10 (impish), tmux 3.1c |
It's most likely related to Some more info on the window layout behavior before attaching: tmuxinator/tmuxinator#651 (comment) |
…on#704 Use tmux default session size 80x24 when creating a new session
…on#704 Use tmux default session size 80x24 when creating a new session
…on#704 Use tmux default session size 80x24 when creating a new session
@varac @illarionvk @cblegare @categulario @mikedfunk v1.13.1 is live with a fix, via @nvasilas from #793 pip install tmuxp==1.13.1 Any better now? P.S. You may need to kill your tmux server or try on a fresh one by passing something like |
@categulario What's your config file? Did you select the main-horizontal layout. If that's the case then it looks ok to me. |
Maybe that's the expected behavior. I don't actually know because I haven't
seen it working before (:
In any case I confirm that it works for me in the given release
El lun., 22 de agosto de 2022 22:53, nvasilas ***@***.***>
escribió:
… @categulario <https://github.com/categulario> What's your config file?
Did you select the main-horizontal layout. If that's the case then it looks
ok to me.
—
Reply to this email directly, view it on GitHub
<#667 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGBBZE4NBPCAFPZI73EUFDV2OH7TANCNFSM4X3RL3WA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
My next change at v1.13.2 will probably bring this issue back, if so ping me.
I think we will need to rewind for a real fix to this. I will think of something. |
@tony FYI think this issue is live again ("if so, ping me.)
Also, mine is Question - is there a workaround? Manually, after the window loads, I can do |
I don't have a workaround - yet, sorry - but do ask for assistance from community in helping with that. #815 is an issue to follow where I intend on devising a robust solution for workspaces that work at scale and is tested P.S. And of course, if I devise a workaround in the mean time I will add it here and notify you and the thread |
@tony I'll download the source and see if I can contribute. I'm solid at python but I suspect there is a lot of os / shell magic here that will baffle me. I'll take a look and see if I can contribute. |
@rr326 The codebase of tmuxp and libtmux will improve over the coming months. If it seems like too big of task today it will be better later |
@tony I guess I should wait then - no need to do a bunch of hard work when easy is on the way. I'll try to remember to check back. |
FWIW, I had some success setting the session_name: meh
windows:
- layout: main-vertical
options:
main-pane-width: '40%'
panes:
- pane
- pane |
@theutz @PedroSena @fbnfgc @rr326 @categulario @nvasilas @varac @illarionvk @cblegare @mikedfunk There is a PR at #926 testing a fix for this longstanding issue. I am in need of testers for this and would be very grateful for your time 🙏. If you try |
hey @tony! I just tested 1.36 (broken behavior) and then upgraded to 1.46 and it was fixed! with the very same config I put in the comments before. Thanks for the amazing work |
Yes! Thank you for checking, glad this seems to be working! |
this will simplify my configs so much! |
Step 1: Provide a summary of your problem
I am trying to use
tmuxp.workspacebuilder.WorkspaceBuilder
with a simplemain-horizontal
3-panes scenario and the created result has the main pane of 1 line high.Step 2: Provide tmuxp details
Step 3: Describe the problem:
Steps to reproduce:
Run the following script
Observed Results:
Three panes are nicely, but the main (top) one has only one line of heigth
Expected Results:
Panes created with configured size.
Relevant Code:
The text was updated successfully, but these errors were encountered: