File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -493,6 +493,7 @@ def split(
493
493
attach : bool = False ,
494
494
direction : t .Optional [PaneDirection ] = None ,
495
495
full_window_split : t .Optional [bool ] = None ,
496
+ zoom : t .Optional [bool ] = None ,
496
497
shell : t .Optional [str ] = None ,
497
498
size : t .Optional [t .Union [str , int ]] = None ,
498
499
environment : t .Optional [t .Dict [str , str ]] = None ,
@@ -510,6 +511,8 @@ def split(
510
511
split in direction. If none is specified, assume down.
511
512
full_window_split: bool, optional
512
513
split across full window width or height, rather than active pane.
514
+ zoom: bool, optional
515
+ expand pane
513
516
shell : str, optional
514
517
execute a command on splitting the window. The pane will close
515
518
when the command exits.
@@ -599,6 +602,9 @@ def split(
599
602
if full_window_split :
600
603
tmux_args += ("-f" ,)
601
604
605
+ if zoom :
606
+ tmux_args += ("-Z" ,)
607
+
602
608
tmux_args += ("-P" , "-F%s" % "" .join (tmux_formats )) # output
603
609
604
610
if start_directory is not None :
Original file line number Diff line number Diff line change @@ -204,6 +204,7 @@ def split(
204
204
attach : bool = False ,
205
205
direction : t .Optional [PaneDirection ] = None ,
206
206
full_window_split : t .Optional [bool ] = None ,
207
+ zoom : t .Optional [bool ] = None ,
207
208
shell : t .Optional [str ] = None ,
208
209
size : t .Optional [t .Union [str , int ]] = None ,
209
210
environment : t .Optional [t .Dict [str , str ]] = None ,
@@ -221,6 +222,8 @@ def split(
221
222
split in direction. If none is specified, assume down.
222
223
full_window_split: bool, optional
223
224
split across full window width or height, rather than active pane.
225
+ zoom: bool, optional
226
+ expand pane
224
227
shell : str, optional
225
228
execute a command on splitting the window. The pane will close
226
229
when the command exits.
@@ -239,6 +242,7 @@ def split(
239
242
attach = attach ,
240
243
direction = direction ,
241
244
full_window_split = full_window_split ,
245
+ zoom = zoom ,
242
246
shell = shell ,
243
247
size = size ,
244
248
environment = environment ,
You can’t perform that action at this time.
0 commit comments