diff --git a/README.asciidoc b/README.asciidoc index 0285fa1b..c5a824a0 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -1508,12 +1508,11 @@ Kakoune state: Some helper commands can be used to define composite commands: - * `prompt `: Prompt the user for a string, when - the user validates, store the result in given and run . - the -init switch allows setting initial content and -password allow - not to show the entered text (and clears the register after command execution). - * `onkey `: Wait for next key from user, writes it into given - and execute commands. + * `prompt `: prompt the user for a string, when the user validates, + executes . The entered text is available in the `text` value + accessible through `$kak_text` in shells or `%val{text}` in commands. + * `onkey `: wait for next key from user, then execute , + the key is available through the `key` value, accessible through `$kak_key`. * `menu ...`: display a menu using labels, the selected label's commands are executed. `menu` can take a -auto-single argument, to automatically run commands