File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -492,6 +492,7 @@ def split(
492492 start_directory : t .Optional [str ] = None ,
493493 attach : bool = False ,
494494 direction : t .Optional [PaneDirection ] = None ,
495+ full_window_split : t .Optional [bool ] = None ,
495496 shell : t .Optional [str ] = None ,
496497 size : t .Optional [t .Union [str , int ]] = None ,
497498 environment : t .Optional [t .Dict [str , str ]] = None ,
@@ -509,6 +510,8 @@ def split(
509510 specifies the working directory in which the new window is created.
510511 direction : PaneDirection, optional
511512 split in direction. If none is specified, assume down.
513+ full_window_split: bool, optional
514+ split across full window width or height, rather than active pane.
512515 shell : str, optional
513516 execute a command on splitting the window. The pane will close
514517 when the command exits.
@@ -587,6 +590,9 @@ def split(
587590 else :
588591 tmux_args += (f"-l{ size } " ,)
589592
593+ if full_window_split :
594+ tmux_args += ("-f" ,)
595+
590596 if percent is not None :
591597 # Deprecated in 3.1 in favor of -l
592598 warnings .warn (
You can’t perform that action at this time.
0 commit comments