docs(keybind): add some documentation for keybinding inheritance

This commit is contained in:
CJ van den Berg 2025-02-24 21:45:29 +01:00
parent 65a3e50b43
commit 9d80a0f0fa
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

18
help.md
View file

@ -69,6 +69,24 @@ like this:
This allows you to make only minor additions/changes to an existing builtin This allows you to make only minor additions/changes to an existing builtin
mode without copying the whole mode and is easier to keep up-to-date. mode without copying the whole mode and is easier to keep up-to-date.
Additionally, individual sub-modes may inherit all non-conflicting keybindings
from another sub-mode of the same mode by adding an `inherit` option to the
sub-mode section like this:
```
"normal": {
"inherit": "project",
...
```
Multiple inheritance is supported with the `inherits` options like this:
```
"normal": {
"inherits": ["project", "tasks"],
...
```
## Flow mode ## Flow mode
The default input mode, called just flow, is based on common GUI The default input mode, called just flow, is based on common GUI