Fix on-key command name in README

This commit is contained in:
Maxime Coste 2017-01-31 22:48:24 +00:00
parent 6e39e8371a
commit 30d8641e78

View File

@ -1191,7 +1191,7 @@ command. This provides a few advantages:
left (if possible). left (if possible).
* The modes are nested: that means the normal mode can enter prompt (with `:`), * The modes are nested: that means the normal mode can enter prompt (with `:`),
or any other modes (using `:onkey` or `:menu` for example), and these modes or any other modes (using `:on-key` or `:menu` for example), and these modes
will get back to the insert mode afterwards. will get back to the insert mode afterwards.
This feature is tailored for scripting/macros, as it provides a more predictable This feature is tailored for scripting/macros, as it provides a more predictable
@ -1516,7 +1516,7 @@ Some helper commands can be used to define composite commands:
* `prompt <prompt> <command>`: prompt the user for a string, when the user validates, * `prompt <prompt> <command>`: prompt the user for a string, when the user validates,
executes <command>. The entered text is available in the `text` value executes <command>. The entered text is available in the `text` value
accessible through `$kak_text` in shells or `%val{text}` in commands. accessible through `$kak_text` in shells or `%val{text}` in commands.
* `onkey <command>`: wait for next key from user, then execute <command>, * `on-key <command>`: wait for next key from user, then execute <command>,
the key is available through the `key` value, accessible through `$kak_key`. the key is available through the `key` value, accessible through `$kak_key`.
* `menu <label1> <commands1> <label2> <commands2>...`: display a menu using * `menu <label1> <commands1> <label2> <commands2>...`: display a menu using
labels, the selected label's commands are executed. labels, the selected label's commands are executed.