If neither main-horizontal
nor main-vertical
is working for you. Then you can adjust your current layout the way you want to be and use the tmux cmd: list-windows
witch will return the current layout. In Example:
list-windows
returns:
1: bash [190x41] [layout c9f8,190x41,0,0[190x20,0,0,190x20,0,21{95x20,0,21,94x20,96,21}]]
Then the yaml will be:
windows: - editor: layout: c9f8,190x41,0,0[190x20,0,0,190x20,0,21{95x20,0,21,94x20,96,21}] panes: - vim - foo1 - foo2
- server: rails s
意思就是,你新打开一个窗口,调节到你满意的模式,然后命令行输入
:tmux list-windows