From c61aae0722058ad404ec1c117a277bef437e006e Mon Sep 17 00:00:00 2001 From: Delapouite Date: Tue, 17 Jan 2017 18:08:10 +0100 Subject: [PATCH] fix(README): remove from prompt and onkey commands --- README.asciidoc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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