From 9d80a0f0fa09670066cd7f7287c4ff65387d8d5f Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Mon, 24 Feb 2025 21:45:29 +0100 Subject: [PATCH] docs(keybind): add some documentation for keybinding inheritance --- help.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/help.md b/help.md index 922c4c8..676b5b3 100644 --- a/help.md +++ b/help.md @@ -69,6 +69,24 @@ like this: 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. +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 The default input mode, called just flow, is based on common GUI