Skip to content

Commit 6ec00bc

Browse files
committed
2 new examples, automatic renaming, main-pane-height
1 parent 3c42a15 commit 6ec00bc

File tree

5 files changed

+120
-0
lines changed

5 files changed

+120
-0
lines changed

doc/examples.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,36 @@ JSON
104104
:language: json
105105

106106

107+
Automatic Rename
108+
----------------
109+
110+
YAML
111+
""""
112+
113+
.. literalinclude:: ../examples/automatic-rename.yaml
114+
:language: yaml
115+
116+
JSON
117+
""""
118+
119+
.. literalinclude:: ../examples/automatic-rename.json
120+
:language: json
121+
122+
Main pane height
123+
----------------
124+
125+
YAML
126+
""""
127+
128+
.. literalinclude:: ../examples/main-pane-height.yaml
129+
:language: yaml
130+
131+
JSON
132+
""""
133+
134+
.. literalinclude:: ../examples/main-pane-height.json
135+
:language: json
136+
107137
Super-advanced dev environment
108138
------------------------------
109139

examples/automatic-rename.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"windows": [
3+
{
4+
"panes": [
5+
{
6+
"shell_command": [
7+
"man echo"
8+
],
9+
"start_directory": "~"
10+
},
11+
{
12+
"shell_command": [
13+
"echo \"hey\""
14+
]
15+
},
16+
{
17+
"shell_command": [
18+
"echo \"moo\""
19+
]
20+
}
21+
],
22+
"layout": "main-horizontal",
23+
"options": {
24+
"automatic-rename": true
25+
}
26+
}
27+
],
28+
"session_name": "test window options",
29+
"start_directory": "~"
30+
}

examples/automatic-rename.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
session_name: test window options
2+
start_directory: '~'
3+
windows:
4+
- layout: main-horizontal
5+
options:
6+
automatic-rename: on
7+
panes:
8+
- shell_command:
9+
- man echo
10+
start_directory: '~'
11+
- shell_command:
12+
- echo "hey"
13+
- shell_command:
14+
- echo "moo"

examples/main-pane-height.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"windows": [
3+
{
4+
"panes": [
5+
{
6+
"shell_command": [
7+
"vim"
8+
],
9+
"start_directory": "~"
10+
},
11+
{
12+
"shell_command": [
13+
"echo \"hey\""
14+
]
15+
},
16+
{
17+
"shell_command": [
18+
"echo \"moo\""
19+
]
20+
}
21+
],
22+
"layout": "main-horizontal",
23+
"options": {
24+
"main-pane-height": 30
25+
},
26+
"window_name": "editor"
27+
}
28+
],
29+
"session_name": "main pane height",
30+
"start_directory": "~"
31+
}

examples/main-pane-height.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
session_name: main-pane-height
2+
start_directory: '~'
3+
windows:
4+
- layout: main-horizontal
5+
options:
6+
main-pane-height: 30
7+
panes:
8+
- shell_command:
9+
- top
10+
start_directory: '~'
11+
- shell_command:
12+
- echo "hey"
13+
- shell_command:
14+
- echo "moo"
15+
window_name: my window name

0 commit comments

Comments
 (0)