File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -489,6 +489,8 @@ def select_pane(self) -> "Pane":
489489
490490 def split (
491491 self ,
492+ / ,
493+ target : t .Optional [t .Union [int , str ]] = None ,
492494 start_directory : t .Optional [str ] = None ,
493495 attach : bool = False ,
494496 direction : t .Optional [PaneDirection ] = None ,
@@ -615,6 +617,9 @@ def split(
615617 if not attach :
616618 tmux_args += ("-d" ,)
617619
620+ if target is not None :
621+ tmux_args += (f"-t{ target } " ,)
622+
618623 if environment :
619624 if has_gte_version ("3.0" ):
620625 for k , v in environment .items ():
@@ -805,6 +810,7 @@ def at_right(self) -> bool:
805810 #
806811 def split_window (
807812 self ,
813+ target : t .Optional [t .Union [int , str ]] = None ,
808814 attach : bool = False ,
809815 start_directory : t .Optional [str ] = None ,
810816 vertical : bool = True ,
@@ -842,6 +848,7 @@ def split_window(
842848 if size is None and percent is not None :
843849 size = f'{ str (percent ).rstrip ("%" )} %'
844850 return self .split (
851+ target = target ,
845852 attach = attach ,
846853 start_directory = start_directory ,
847854 direction = PaneDirection .Below if vertical else PaneDirection .Right ,
Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ def split(
238238 """
239239 active_pane = self .active_pane or self .panes [0 ]
240240 return active_pane .split (
241+ target = target ,
241242 start_directory = start_directory ,
242243 attach = attach ,
243244 direction = direction ,
You can’t perform that action at this time.
0 commit comments