Skip to content

Commit e6a2469

Browse files
committed
docs(configuratio): Move examples to configuration
1 parent d9b1e7d commit e6a2469

File tree

5 files changed

+54
-42
lines changed

5 files changed

+54
-42
lines changed

docs/configuration/environmental-variables.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,15 @@ Example: `TMUXP_CONFIGDIR=$HOME/.mytmuxpconfigdir tmuxp load cpython`
88

99
## `LIBTMUX_TMUX_FORMAT_SEPARATOR`
1010

11-
See [`LIBTMUX_TMUX_FORMAT_SEPARATOR`](https://libtmux.git-pull.com/api.html#tmux-format-separator) in libtmux API.
11+
:::{seealso}
12+
13+
[`LIBTMUX_TMUX_FORMAT_SEPARATOR`](https://libtmux.git-pull.com/api.html#tmux-format-separator) in libtmux API.
14+
15+
:::
16+
17+
In rare circumstances the `tmux -F` separator under the hood may cause issues
18+
building sessions. For this case you can override it here.
19+
20+
```console
21+
$ env LIBTMUX_TMUX_FORMAT_SEPARATOR='__SEP__' tmuxp load [session]
22+
```

docs/examples.md renamed to docs/configuration/examples.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ punctual.
2929

3030
````{tab} YAML
3131
32-
```{literalinclude} ../examples/shorthands.yaml
32+
```{literalinclude} ../../examples/shorthands.yaml
3333
:language: yaml
3434
3535
```
@@ -39,7 +39,7 @@ punctual.
3939

4040
````{tab} JSON
4141
42-
```{literalinclude} ../examples/shorthands.json
42+
```{literalinclude} ../../examples/shorthands.json
4343
:language: json
4444
4545
```
@@ -55,7 +55,7 @@ Note `''` counts as an empty carriage return.
5555

5656
````{tab} YAML
5757
58-
```{literalinclude} ../examples/blank-panes.yaml
58+
```{literalinclude} ../../examples/blank-panes.yaml
5959
:language: yaml
6060
6161
```
@@ -64,7 +64,7 @@ Note `''` counts as an empty carriage return.
6464

6565
````{tab} JSON
6666
67-
```{literalinclude} ../examples/blank-panes.json
67+
```{literalinclude} ../../examples/blank-panes.json
6868
:language: json
6969
7070
```
@@ -93,7 +93,7 @@ Note `''` counts as an empty carriage return.
9393

9494
````{tab} YAML
9595
96-
```{literalinclude} ../examples/2-pane-vertical.yaml
96+
```{literalinclude} ../../examples/2-pane-vertical.yaml
9797
:language: yaml
9898
9999
```
@@ -102,7 +102,7 @@ Note `''` counts as an empty carriage return.
102102

103103
````{tab} JSON
104104
105-
```{literalinclude} ../examples/2-pane-vertical.json
105+
```{literalinclude} ../../examples/2-pane-vertical.json
106106
:language: json
107107
108108
```
@@ -131,7 +131,7 @@ Note `''` counts as an empty carriage return.
131131

132132
````{tab} YAML
133133
134-
```{literalinclude} ../examples/3-pane.yaml
134+
```{literalinclude} ../../examples/3-pane.yaml
135135
:language: yaml
136136
137137
```
@@ -140,7 +140,7 @@ Note `''` counts as an empty carriage return.
140140

141141
````{tab} JSON
142142
143-
```{literalinclude} ../examples/3-pane.json
143+
```{literalinclude} ../../examples/3-pane.json
144144
:language: json
145145
146146
```
@@ -169,7 +169,7 @@ Note `''` counts as an empty carriage return.
169169

170170
````{tab} YAML
171171
172-
```{literalinclude} ../examples/4-pane.yaml
172+
```{literalinclude} ../../examples/4-pane.yaml
173173
:language: yaml
174174
175175
```
@@ -178,7 +178,7 @@ Note `''` counts as an empty carriage return.
178178

179179
````{tab} JSON
180180
181-
```{literalinclude} ../examples/4-pane.json
181+
```{literalinclude} ../../examples/4-pane.json
182182
:language: json
183183
184184
```
@@ -191,7 +191,7 @@ Equivalent to `tmux new-window -c <start-directory>`.
191191

192192
````{tab} YAML
193193
194-
```{literalinclude} ../examples/start-directory.yaml
194+
```{literalinclude} ../../examples/start-directory.yaml
195195
:language: yaml
196196
197197
```
@@ -200,7 +200,7 @@ Equivalent to `tmux new-window -c <start-directory>`.
200200

201201
````{tab} JSON
202202
203-
```{literalinclude} ../examples/start-directory.json
203+
```{literalinclude} ../../examples/start-directory.json
204204
:language: json
205205
206206
```
@@ -244,7 +244,7 @@ please make a ticket on the [issue tracker][issue tracker].
244244

245245
````{tab} YAML
246246
247-
```{literalinclude} ../examples/env-variables.yaml
247+
```{literalinclude} ../../examples/env-variables.yaml
248248
:language: yaml
249249
250250
```
@@ -253,7 +253,7 @@ please make a ticket on the [issue tracker][issue tracker].
253253

254254
````{tab} JSON
255255
256-
```{literalinclude} ../examples/env-variables.json
256+
```{literalinclude} ../../examples/env-variables.json
257257
:language: json
258258
259259
```
@@ -266,15 +266,15 @@ tmuxp will set session environment variables.
266266

267267
````{tab} YAML
268268
269-
```{literalinclude} ../examples/session-environment.yaml
269+
```{literalinclude} ../../examples/session-environment.yaml
270270
:language: yaml
271271
272272
```
273273
````
274274

275275
````{tab} JSON
276276
277-
```{literalinclude} ../examples/session-environment.json
277+
```{literalinclude} ../../examples/session-environment.json
278278
:language: json
279279
280280
```
@@ -288,7 +288,7 @@ selected upon loading.
288288

289289
````{tab} YAML
290290
291-
```{literalinclude} ../examples/focus-window-and-panes.yaml
291+
```{literalinclude} ../../examples/focus-window-and-panes.yaml
292292
:language: yaml
293293
294294
```
@@ -297,7 +297,7 @@ selected upon loading.
297297

298298
````{tab} JSON
299299
300-
```{literalinclude} ../examples/focus-window-and-panes.json
300+
```{literalinclude} ../../examples/focus-window-and-panes.json
301301
:language: json
302302
303303
```
@@ -312,7 +312,7 @@ This will add the `shell_command` to the bash history in the pane.
312312

313313
````{tab} YAML
314314
315-
```{literalinclude} ../examples/suppress-history.yaml
315+
```{literalinclude} ../../examples/suppress-history.yaml
316316
:language: yaml
317317
318318
```
@@ -321,7 +321,7 @@ This will add the `shell_command` to the bash history in the pane.
321321

322322
````{tab} JSON
323323
324-
```{literalinclude} ../examples/suppress-history.json
324+
```{literalinclude} ../../examples/suppress-history.json
325325
:language: json
326326
327327
```
@@ -349,7 +349,7 @@ Omit sending {kbd}`enter` to key commands. Equivalent to
349349

350350
````{tab} YAML
351351
352-
```{literalinclude} ../examples/skip-send.yaml
352+
```{literalinclude} ../../examples/skip-send.yaml
353353
:language: yaml
354354
355355
```
@@ -358,7 +358,7 @@ Omit sending {kbd}`enter` to key commands. Equivalent to
358358

359359
````{tab} JSON
360360
361-
```{literalinclude} ../examples/skip-send.json
361+
```{literalinclude} ../../examples/skip-send.json
362362
:language: json
363363
364364
```
@@ -367,7 +367,7 @@ Omit sending {kbd}`enter` to key commands. Equivalent to
367367

368368
````{tab} YAML (pane-level)
369369
370-
```{literalinclude} ../examples/skip-send-pane-level.yaml
370+
```{literalinclude} ../../examples/skip-send-pane-level.yaml
371371
:language: yaml
372372
373373
```
@@ -376,7 +376,7 @@ Omit sending {kbd}`enter` to key commands. Equivalent to
376376

377377
````{tab} JSON (pane-level)
378378
379-
```{literalinclude} ../examples/skip-send-pane-level.json
379+
```{literalinclude} ../../examples/skip-send-pane-level.json
380380
:language: json
381381
382382
```
@@ -408,15 +408,15 @@ This is especially useful for expensive commands where the terminal needs some b
408408

409409
````{tab} Virtualenv
410410
411-
```{literalinclude} ../examples/sleep-virtualenv.yaml
411+
```{literalinclude} ../../examples/sleep-virtualenv.yaml
412412
:language: yaml
413413
414414
```
415415
````
416416

417417
````{tab} YAML
418418
419-
```{literalinclude} ../examples/sleep.yaml
419+
```{literalinclude} ../../examples/sleep.yaml
420420
:language: yaml
421421
422422
```
@@ -425,7 +425,7 @@ This is especially useful for expensive commands where the terminal needs some b
425425

426426
````{tab} JSON
427427
428-
```{literalinclude} ../examples/sleep.json
428+
```{literalinclude} ../../examples/sleep.json
429429
:language: json
430430
431431
```
@@ -434,7 +434,7 @@ This is especially useful for expensive commands where the terminal needs some b
434434

435435
````{tab} YAML (pane-level)
436436
437-
```{literalinclude} ../examples/sleep-pane-level.yaml
437+
```{literalinclude} ../../examples/sleep-pane-level.yaml
438438
:language: yaml
439439
440440
```
@@ -443,7 +443,7 @@ This is especially useful for expensive commands where the terminal needs some b
443443

444444
````{tab} JSON (pane-level)
445445
446-
```{literalinclude} ../examples/sleep-pane-level.json
446+
```{literalinclude} ../../examples/sleep-pane-level.json
447447
:language: json
448448
449449
```
@@ -457,7 +457,7 @@ without `window_index` will use the lowest available window index.
457457

458458
````{tab} YAML
459459
460-
```{literalinclude} ../examples/window-index.yaml
460+
```{literalinclude} ../../examples/window-index.yaml
461461
:language: yaml
462462
463463
```
@@ -466,7 +466,7 @@ without `window_index` will use the lowest available window index.
466466

467467
````{tab} JSON
468468
469-
```{literalinclude} ../examples/window-index.json
469+
```{literalinclude} ../../examples/window-index.json
470470
:language: json
471471
472472
```
@@ -481,7 +481,7 @@ different shells on different panes.
481481

482482
````{tab} YAML
483483
484-
```{literalinclude} ../examples/pane-shell.yaml
484+
```{literalinclude} ../../examples/pane-shell.yaml
485485
:language: yaml
486486
487487
```
@@ -490,7 +490,7 @@ different shells on different panes.
490490

491491
````{tab} JSON
492492
493-
```{literalinclude} ../examples/pane-shell.json
493+
```{literalinclude} ../../examples/pane-shell.json
494494
:language: json
495495
496496
```
@@ -507,14 +507,14 @@ Including `automatic-rename`, `default-shell`,
507507

508508
````{tab} YAML
509509
510-
```{literalinclude} ../examples/options.yaml
510+
```{literalinclude} ../../examples/options.yaml
511511
:language: yaml
512512
513513
```
514514
````
515515

516516
````{tab} JSON
517-
```{literalinclude} ../examples/options.json
517+
```{literalinclude} ../../examples/options.json
518518
:language: json
519519
520520
```
@@ -527,14 +527,14 @@ Apply window options after panes have been created. Useful for
527527
pane during creation.
528528

529529
````{tab} YAML
530-
```{literalinclude} ../examples/2-pane-synchronized.yaml
530+
```{literalinclude} ../../examples/2-pane-synchronized.yaml
531531
:language: yaml
532532
533533
```
534534
````
535535

536536
````{tab} JSON
537-
```{literalinclude} ../examples/2-pane-synchronized.json
537+
```{literalinclude} ../../examples/2-pane-synchronized.json
538538
:language: json
539539
540540
```
@@ -543,14 +543,14 @@ pane during creation.
543543
## Main pane height
544544

545545
````{tab} YAML
546-
```{literalinclude} ../examples/main-pane-height.yaml
546+
```{literalinclude} ../../examples/main-pane-height.yaml
547547
:language: yaml
548548
549549
```
550550
````
551551

552552
````{tab} JSON
553-
```{literalinclude} ../examples/main-pane-height.json
553+
```{literalinclude} ../../examples/main-pane-height.json
554554
:language: json
555555
556556
```

docs/configuration/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# Reference
1+
# Configuration
22

33
```{toctree}
44
55
environmental-variables
6+
examples
67
78
```

docs/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
2222
about
2323
quickstart
24-
examples
2524
commands/index
2625
configuration/index
2726
plugin_system

docs/redirects.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
"cli.md" "commands/index.md"
2+
"examples.md" "configuration/examples.md"

0 commit comments

Comments
 (0)