Skip to content

Commit 2297232

Browse files
committed
feat(Pane.split_window): Add full_window_split
1 parent a93871f commit 2297232

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libtmux/pane.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)