mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-24 11:25:19 +03:00
cd0b0119a0
* adjust example layouts and move them from `./example` to `./example/layouts` * simplify the deserialization of the layout * layouts are now constructed as follows: ``` --- template: direction: Horizontal parts: - direction: Vertical borderless: true split_size: Fixed: 1 run: plugin: tab-bar - direction: Vertical body: true # <== The body section specifies the position of the # inserted tab - direction: Vertical borderless: true split_size: Fixed: 2 run: plugin: status-bar tabs: - direction: Vertical - direction: Vertical ```
91 lines
1.7 KiB
YAML
91 lines
1.7 KiB
YAML
---
|
|
template:
|
|
direction: Horizontal
|
|
parts:
|
|
- direction: Vertical
|
|
split_size:
|
|
Fixed: 1
|
|
run:
|
|
plugin: tab-bar
|
|
borderless: true
|
|
- direction: Vertical
|
|
body: true
|
|
- direction: Vertical
|
|
split_size:
|
|
Fixed: 2
|
|
run:
|
|
plugin: status-bar
|
|
borderless: true
|
|
|
|
tabs:
|
|
- direction: Vertical
|
|
parts:
|
|
- direction: Vertical
|
|
split_size:
|
|
Percent: 50
|
|
run:
|
|
command: {cmd: htop}
|
|
- direction: Vertical
|
|
split_size:
|
|
Percent: 50
|
|
- direction: Vertical
|
|
parts:
|
|
- direction: Vertical
|
|
split_size:
|
|
Percent: 50
|
|
- direction: Vertical
|
|
split_size:
|
|
Percent: 50
|
|
- direction: Vertical
|
|
parts:
|
|
- direction: Vertical
|
|
split_size:
|
|
Percent: 50
|
|
- direction: Horizontal
|
|
split_size:
|
|
Percent: 50
|
|
parts:
|
|
- direction: Vertical
|
|
split_size:
|
|
Percent: 50
|
|
- direction: Vertical
|
|
split_size:
|
|
Percent: 50
|
|
- direction: Vertical
|
|
- direction: Vertical
|
|
run:
|
|
command: {cmd: htop, args: ["-C"]}
|
|
- direction: Vertical
|
|
- direction: Vertical
|
|
parts:
|
|
- direction: Vertical
|
|
split_size:
|
|
Percent: 20
|
|
run:
|
|
plugin: strider
|
|
- direction: Horizontal
|
|
split_size:
|
|
Percent: 80
|
|
parts:
|
|
- direction: Vertical
|
|
split_size:
|
|
Percent: 50
|
|
- direction: Vertical
|
|
split_size:
|
|
Percent: 50
|
|
- direction: Vertical
|
|
parts:
|
|
- direction: Vertical
|
|
split_size:
|
|
Percent: 40
|
|
- direction: Horizontal
|
|
split_size:
|
|
Percent: 60
|
|
parts:
|
|
- direction: Vertical
|
|
split_size:
|
|
Percent: 50
|
|
- direction: Vertical
|
|
split_size:
|
|
Percent: 50
|