File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -432,9 +432,12 @@ def select_pane(self) -> "Pane":
432
432
def split_window (
433
433
self ,
434
434
attach : bool = False ,
435
- vertical : bool = True ,
436
435
start_directory : t .Optional [str ] = None ,
437
- percent : t .Optional [int ] = None ,
436
+ vertical : bool = True ,
437
+ shell : t .Optional [str ] = None ,
438
+ size : t .Optional [t .Union [str , int ]] = None ,
439
+ percent : t .Optional [int ] = None , # deprecated
440
+ environment : t .Optional [t .Dict [str , str ]] = None ,
438
441
) -> "Pane" : # New Pane, not self
439
442
"""Split window at pane and return newly created :class:`Pane`.
440
443
@@ -448,13 +451,22 @@ def split_window(
448
451
specifies the working directory in which the new pane is created.
449
452
percent: int, optional
450
453
percentage to occupy with respect to current pane
454
+
455
+ Notes
456
+ -----
457
+ .. deprecated:: 0.28.0
458
+
459
+ ``percent=25`` deprecated in favor of ``size="25%"``.
451
460
"""
452
461
return self .window .split_window (
453
462
target = self .pane_id ,
454
- start_directory = start_directory ,
455
463
attach = attach ,
464
+ start_directory = start_directory ,
456
465
vertical = vertical ,
466
+ shell = shell ,
467
+ size = size ,
457
468
percent = percent ,
469
+ environment = environment ,
458
470
)
459
471
460
472
"""
You can’t perform that action at this time.
0 commit comments