Is it possible to configure how the splits layout splits its windows in a session file? #7635
-
|
Is it possible to configure the splits layout from a session file? I have this session as work.session but when I launch I can set the bias to be horizontal or vertical, but I don't think I can change it in between (Note that the grid layout won't work as the two panes on the right aren't the same height as each other :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
Use launch --location=vsplit/hsplit to create your splits and at the end have launch --allow-remote-control kitten @ resize-window whatever to resize the last focused window as much as you like. |
Beta Was this translation helpful? Give feedback.
-
|
```
layout splits
launch --var first-window=
launch --location=vsplit
launch --location=hsplit
resize_window shorter 5
launch --type=background --allow-remote-control sh -c 'kitten @ focus-window --match var:first-window; kitten @ launch --location=hsplit --dont-take-focus'
```
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks again — I ended up with this, which does what I wanted. (The |
Beta Was this translation helpful? Give feedback.
Use launch --location=vsplit/hsplit to create your splits and at the end have
launch --allow-remote-control kitten @ resize-window whatever
to resize the last focused window as much as you like.