zellij/example
a-kenji 261e691f9f Add commands to layout
Add the ability to run commands on loading a layout:
```
  - direction: Horizontal
    split_size:
      Percent: 50
    run:
      command: {cmd: htop}
```
or respectively:
```
  - direction: Horizontal
    split_size:
      Percent: 50
    run:
      command: {cmd: htop, args: ["-C"]}
```

In order to specify the difference of commands and
plugins now the plugins need to be under the `run` section:
```
  - direction: Vertical
    split_size:
      Fixed: 2
    run:
      plugin: status-bar
```
This also means that this is a breaking change for people
that already have a custom layout.

Example layouts:
```
---
direction: Vertical
parts:
  - direction: Horizontal
    split_size:
      Percent: 50
    parts:
      - direction: Vertical
        split_size:
          Percent: 50
      - direction: Vertical
        split_size:
          Percent: 50
        run:
          command: {cmd: htop}
  - direction: Horizontal
    split_size:
      Percent: 50
    run:
      command: {cmd: htop}
```
and:
```
---
direction: Horizontal
parts:
  - direction: Vertical
    split_size:
      Fixed: 1
    run:
      plugin: tab-bar
  - direction: Vertical
    parts:
    - direction: Vertical
      parts:
      - direction: Vertical
        split_size:
          Percent: 50
        run:
          command: {cmd: htop}
      - direction: Vertical
        split_size:
          Percent: 50
        run:
          command: {cmd: htop, args: ["-C"]}
  - direction: Vertical
    split_size:
      Fixed: 5
  - direction: Vertical
    split_size:
      Fixed: 2
    run:
      plugin: status-bar
```

closes #551, closes #284
2021-07-09 16:43:44 +02:00
..
config.yaml Add Option for Simplified Layout 2021-05-10 16:03:06 +02:00
default.yaml fixup! Merge branch 'main' of https://github.com/zellij-org/zellij into simple-font-ui 2021-05-10 20:54:39 +02:00
README.md Add Unbind for Keybindings (#241) 2021-04-17 15:05:34 +02:00
run_htop_layout_with_plugins.yaml Add commands to layout 2021-07-09 16:43:44 +02:00
run_htop_layout.yaml Add commands to layout 2021-07-09 16:43:44 +02:00
screen-overview.yaml Minor Visibility problem fixed: 2021-04-28 05:27:10 -07:00
screen.nonfunctional Added Screen-overview.yaml & Screen.nonfunctional.txt 2021-04-27 20:01:17 -07:00
tmux-overview.yaml New behavior for h and l 2021-05-09 17:05:14 -03:00
tmux.nonfunctional Requested Changes to 362: 2021-04-25 11:52:31 -07:00

Special considerations when using the configuration:

While trying to bind the newline character in the Config, use double quotes:

Ctrl: "\n" instead of Ctrl: '\n'