Skip to content
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

example for main-vertical with 3 panes #31

Closed
mipmip opened this issue Feb 1, 2021 · 8 comments
Closed

example for main-vertical with 3 panes #31

mipmip opened this issue Feb 1, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@mipmip
Copy link
Contributor

mipmip commented Feb 1, 2021

I'm trying to get this layout, but I don't succeed. Can you help me with an example ?

|-----------------------|-----------------------|
|                       |                       |
|                       |         echo 2        |
|                       |                       |
|      echo 1           |-----------------------|
|                       |                       |
|                       |         echo 3        |
|                       |                       |
|-----------------------|-----------------------|
@mipmip
Copy link
Contributor Author

mipmip commented Feb 1, 2021

this got methe closest:

session: example
windows:
  - name: example
    layout: main-vertical
    commands:
      - echo 1
    panes:
      - commands:
        - echo 2
        type: horizontal
      - commands:
        - echo 3
        type: vertical

@mipmip
Copy link
Contributor Author

mipmip commented Feb 1, 2021

oops I see that #30 is asking the same. Sorry.

@ivaaaan ivaaaan added the bug Something isn't working label Feb 1, 2021
@ivaaaan
Copy link
Owner

ivaaaan commented Feb 1, 2021

I cannot create a layout like this either, will take a look at it later

@ivaaaan
Copy link
Owner

ivaaaan commented Feb 1, 2021

@mipmip @fedoranvar I've updated the master branch with a fix for this issue. I would be very grateful if you can test the last fix on your configurations and check if nothing is broken :)

@mipmip
Copy link
Contributor Author

mipmip commented Feb 1, 2021

I have problems....

pim@ojs➜  smug git:(master) ✗ ./smug start test -d                                                                        │~                              |~
Starting a new session...                                                                                                 │~                              |~
Oops, an error occurred! Rolling back...                                                                                  │~                              |~
pim@ojs➜  smug git:(master) ✗ cat ~/.config/smug/smug.log                                                                 │~                              |~
tmux has-session -t test:                                                                                                 │~                              |~
exit status 1                                                                                                             │~                              |~
tmux new -Pd -s test -n smug_def -c                                                                                       │~                              |~
tmux neww -Pd -t test: -n testliq -c                                                                                      │~                              |~
tmux send-keys -t test:testliq echo 1 Enter                                                                               │~                              |~
tmux select-layout -t test:testliq main-vertical                                                                          │~                              |~
tmux split-window -Pd -t test:testliq.0 -c  -F #{pane_id}                                                                 │~                              |~
exit status 1                                                                                                             │~                              |~
tmux kill-session -t test  
session: test

windows:
  - name: testliq
    layout: main-vertical
    commands:
      - echo 1
    panes:
      - commands:
        - echo 2
      - commands:
        - echo 3

@ivaaaan
Copy link
Owner

ivaaaan commented Feb 1, 2021

Weird, your config works fine for me. Can you please also send your tmux.conf?

Screenshot 2021-02-01 at 23 50 55

@ivaaaan
Copy link
Owner

ivaaaan commented Feb 1, 2021

This patch #35 should fix the issue in case if you use custom pane & window indexes. I'll do tests tomorrow and then merge it.

@mipmip
Copy link
Contributor Author

mipmip commented Feb 2, 2021

The patch does fix the problem. It works! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants