summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-09-22 21:23:53 +1000
committerMaxime Coste <mawww@kakoune.org>2020-09-22 21:23:53 +1000
commit3dcdd6617f52b9fb57d8282d7b4c230bb1d271bc (patch)
tree0f2997254befed87dbf10e2fd8d58815ad6dd17f
parentfa375d1c46271bc901464ab72414a56b609fffcb (diff)
parent9bc00b6853cd320162206746e134a0529b8caa11 (diff)
Merge remote-tracking branch 'Screwtapello/master' into master
-rw-r--r--doc/pages/hooks.asciidoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/pages/hooks.asciidoc b/doc/pages/hooks.asciidoc
index a4253e25..af99071b 100644
--- a/doc/pages/hooks.asciidoc
+++ b/doc/pages/hooks.asciidoc
@@ -146,6 +146,11 @@ name. Hooks with no description will always use an empty string.
*ModeChange* `[push|pop]:<old mode>:<new mode>`::
Triggered whenever a mode is pushed or removed from the mode stack.
+ The mode name can be things like 'normal' or 'insert' for regular
+ interactive modes, or 'next-key[<name>]' for sub-modes where Kakoune
+ prompts for a key. For example, `g` in normal mode pushes 'next-key[goto]'
+ mode, the `enter-user-mode foo` command pushes 'next-key[user.foo]' mode,
+ and the `on-key -mode-name bar` command pushes 'next-key[bar]' mode.
*KakBegin* `session name`::
kakoune has started, this hook is called just after reading the user