@@ -527,59 +527,56 @@ def split(
527
527
528
528
Examples
529
529
--------
530
- >>> pane
531
- Pane(%1 Window(@1 1:..., Session($1 ...)))
530
+ >>> (pane.at_left, pane.at_right,
531
+ ... pane.at_top, pane.at_bottom)
532
+ (True, True,
533
+ True, True)
532
534
533
535
>>> new_pane = pane.split()
534
536
535
- >>> new_pane
536
- Pane(%2 Window(@1 1:..., Session($1 ...)))
537
-
538
- >>> new_pane.at_right
539
- True
540
-
541
- >>> new_pane.at_left
542
- True
543
-
544
- >>> new_pane.at_top
545
- False
546
-
547
- >>> new_pane.at_bottom
548
- True
537
+ >>> (new_pane.at_left, new_pane.at_right,
538
+ ... new_pane.at_top, new_pane.at_bottom)
539
+ (True, True,
540
+ False, True)
549
541
550
542
>>> right_pane = pane.split(direction=PaneDirection.Right)
551
543
552
- >>> right_pane
553
- Pane(%3 Window(@1 1:..., Session($1 ...)))
554
-
555
- >>> right_pane.at_right
556
- True
544
+ >>> (right_pane.at_left, right_pane.at_right,
545
+ ... right_pane.at_top, right_pane.at_bottom)
546
+ (False, True,
547
+ True, False)
557
548
558
- >>> right_pane.at_left
559
- False
549
+ >>> left_pane = pane.split(direction=PaneDirection.Left)
560
550
561
- >>> right_pane.at_top
562
- True
551
+ >>> (left_pane.at_left, left_pane.at_right,
552
+ ... left_pane.at_top, left_pane.at_bottom)
553
+ (True, False,
554
+ True, False)
563
555
564
- >>> right_pane.at_bottom
565
- False
556
+ >>> top_pane = pane.split(direction=PaneDirection.Above)
566
557
567
- >>> left_pane = pane.split(direction=PaneDirection.Left)
558
+ >>> (top_pane.at_left, top_pane.at_right,
559
+ ... top_pane.at_top, top_pane.at_bottom)
560
+ (False, False,
561
+ True, False)
568
562
569
- >>> left_pane
570
- Pane(%4 Window(@1 1:..., Session($1 ...)))
563
+ >>> pane = session.new_window().active_pane
571
564
572
- >>> left_pane.at_right
573
- False
565
+ >>> top_pane = pane.split(direction=PaneDirection.Above, full_window_split=True)
574
566
575
- >>> left_pane.at_left
576
- True
567
+ >>> (top_pane.at_left, top_pane.at_right,
568
+ ... top_pane.at_top, top_pane.at_bottom)
569
+ (True, True,
570
+ True, False)
577
571
578
- >>> left_pane.at_top
579
- True
572
+ >>> bottom_pane = pane.split(
573
+ ... direction=PaneDirection.Below,
574
+ ... full_window_split=True)
580
575
581
- >>> left_pane.at_bottom
582
- False
576
+ >>> (bottom_pane.at_left, bottom_pane.at_right,
577
+ ... bottom_pane.at_top, bottom_pane.at_bottom)
578
+ (True, True,
579
+ False, True)
583
580
"""
584
581
tmux_formats = ["#{pane_id}" + FORMAT_SEPARATOR ]
585
582
0 commit comments