Commit 680ac34
committed
Pane(feat[split]): add percentage parameter for split-window
why: split-window supports -p for percentage-based sizing which is more
intuitive than the absolute cell count provided by the existing size parameter.
what:
- Add percentage (-p) parameter to Pane.split(), mutually exclusive with size
- Validate that size and percentage are not both specified
- Add tests for percentage split and mutual exclusion1 parent 8c4ca4d commit 680ac34
2 files changed
Lines changed: 40 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
| 879 | + | |
879 | 880 | | |
880 | 881 | | |
881 | 882 | | |
| |||
903 | 904 | | |
904 | 905 | | |
905 | 906 | | |
906 | | - | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
907 | 913 | | |
908 | 914 | | |
909 | 915 | | |
| |||
969 | 975 | | |
970 | 976 | | |
971 | 977 | | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
972 | 982 | | |
973 | 983 | | |
974 | 984 | | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
975 | 988 | | |
976 | 989 | | |
977 | 990 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
0 commit comments