Specify the percentage of the panel in the tmuxinator project

How to specify the percentage of the panel in tmuxinator?

For example:

project_name: ad_dev project_root: ~/Programming/WWW/Rails/projects/ApparelDreamDev rvm: ruby-1.9.2-p290@apparel_dev pre: SQL tabs: - editor: layout: main-vertical panes: - vim 75% - #empty, will just run plain bash - top 

for example: the vim panel will occupy 75% of the screen ... is there any way to indicate this? or where in the documentation should I look? He seems to have found nothing.

+76
tmux tmuxinator
Mar 21 2018-12-21T00:
source share
1 answer

The layout should be specified on the layout: line. But you are not limited to five predefined layouts (such as main-vertical). On the page :

 In addition, select-layout may be used to apply a previously used layout - the list-windows command displays the layout of each window in a form suitable for use with select-layout. For example: $ tmux list-windows 0: ksh [159x48] layout: bb62,159x48,0,0{79x48,0,0,79x48,80,0} $ tmux select-layout bb62,159x48,0,0{79x48,0,0,79x48,80,0} tmux automatically adjusts the size of the layout for the current window size. Note that a layout cannot be applied to a window with more panes than that from which the layout was originally defined. 

First, customize your layout exactly as you like - you can adjust the width with resize-pane until it suits you. Then run tmux list-windows . And then you should be able to use the layout: line from the unchanged result in tmuxinator.conf

So based on the results of your entities:

 0: tmux [208x73] [layout b147,208x73,0,0[208x62,0,0,208x10,0,63{104x10,0,63,103x10,105,63}]] (active) 

The corresponding section of the confmax file should be:

  - editor: layout: b147,208x73,0,0[208x62,0,0,208x10,0,63{104x10,0,63,103x10,105,63}] panes: - vim - #empty, will just run plain bash - top 
+164
Apr 02 2018-12-12T00:
source share
โ€” -



All Articles