zellij: document KDL settings

Describe how to set KDL arguments.
This commit is contained in:
Godefroid Chapelle 2023-11-15 13:57:50 +01:00
parent 280721186a
commit 362f734db7
1 changed files with 24 additions and 2 deletions

View File

@ -33,10 +33,32 @@ in {
'';
description = ''
Configuration written to
{file}`$XDG_CONFIG_HOME/zellij/config.yaml`.
{file}`$XDG_CONFIG_HOME/zellij/config.kdl`.
See <https://zellij.dev/documentation> for the full
See <https://zellij.dev/documentation/options> for the full
list of options.
KDL is generated from YAML with the ``toKDL`` generator.
To create KDL with arguments like needed among others by ``keybinds``:
```kdl
keybinds {
shared_except "move" "locked" {
bind "Ctrl m" { SwitchToMode "move"; }
}
}
```
use the following:
```yaml
keybinds = {
shared_except = {
_args = [ "move" "locked" ];
bind = {
_args = [ "Ctrl m" ];
SwitchToMode = "move";
};
};
};
```
'';
};