Skip to content

Commit c80cfe3

Browse files
committed
Add examples for 3-pane, 4-pane
1 parent a73b483 commit c80cfe3

File tree

3 files changed

+74
-0
lines changed

3 files changed

+74
-0
lines changed

doc/examples.rst

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ Examples
77
2 split panes
88
-------------
99

10+
.. aafig::
11+
12+
+--------+--------+
13+
| $ pwd |
14+
| |
15+
| |
16+
+-----------------+
17+
| $ pwd |
18+
| |
19+
| |
20+
+-----------------+
21+
1022
YAML - Short form:
1123

1224
.. literalinclude:: ../examples/2-pane-vertical.yaml
@@ -17,6 +29,43 @@ YAML - Christmas Tree:
1729
.. literalinclude:: ../examples/2-pane-vertical-long.yaml
1830
:language: yaml
1931

32+
3 panes
33+
-------
34+
35+
.. aafig::
36+
37+
+--------+--------+
38+
| $ pwd | $ pwd |
39+
| | |
40+
| | |
41+
+--------+--------+
42+
| $ pwd | $ pwd |
43+
| | |
44+
| | |
45+
+--------+--------+
46+
47+
.. literalinclude:: ../examples/3-pane.yaml
48+
:language: yaml
49+
50+
4 panes
51+
-------
52+
53+
.. aafig::
54+
55+
+-----------------+
56+
| $ pwd |
57+
| |
58+
| |
59+
+--------+--------+
60+
| $ pwd | $ pwd |
61+
| | |
62+
| | |
63+
+--------+--------+
64+
65+
66+
.. literalinclude:: ../examples/4-pane.yaml
67+
:language: yaml
68+
2069
Kung fu
2170
-------
2271

examples/3-pane.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
session_name: 3-pane
2+
windows:
3+
- window_name: dev window
4+
layout: main-vertical
5+
shell_command_before:
6+
- cd ~/
7+
panes:
8+
- shell_command:
9+
- cd /var/log
10+
- ls -al | grep \.log
11+
- pwd
12+
- pwd

examples/4-pane.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
session_name: 4-pane-split
2+
windows:
3+
- window_name: dev window
4+
layout: tiled
5+
shell_command_before:
6+
- cd ~/
7+
panes:
8+
- shell_command:
9+
- cd /var/log
10+
- ls -al | grep \.log
11+
- pwd
12+
- pwd
13+
- pwd

0 commit comments

Comments
 (0)