Sagittarius-a
7da214fcca
feat(scroll): Restore scroll position on SIGINT
...
Fixes #606
Currently scroll down to bottom then exits scroll mode.
2021-07-24 21:28:19 +02:00
a-kenji
22b30599d8
Merge pull request #612 from a-kenji/improve-options
...
Improve options
2021-07-09 17:25:27 +02:00
a-kenji
0ab00e2c6c
Merge pull request #600 from a-kenji/layout-command
...
Add commands to layout
2021-07-09 16:58:29 +02:00
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
a-kenji
cf8d5a7a4d
Use lowercase for options
2021-07-09 13:11:02 +02:00
Kunal Mohan
67ee63548a
Add on_force_close config option
2021-07-09 00:36:47 +05:30
a-kenji
a9088264eb
Change layout directory from data to config
...
* default layouts won't be installed by anymore,
instead they will be directly loaded
* `layout-dir` is now a subdirectory of the
`config-dir` by default, instead of the `data-dir`
POSSIBLE BREAKING CHANGE:
In case of having custom layouts in the previous
`layout-dir` one can switch either the layouts to
the new dir, or set the `layout-dir` to be the current
`layout-dir`
* it is possible to change the location of the `layout-dir`:
- `zellij options --layout-dir [LAYOUR_DIR]`
- `layout_dir: [LAYOUT_DIR]`
2021-06-16 17:09:05 +02:00
a-kenji
4e62b3a1b5
Move config assets to zellij-utils crate
...
* The assets macro seems to not be able to
read across create boundaries.
Now the assets are included in the crate they are used in.
2021-05-27 13:41:17 +02:00