Document :prompt in README

This commit is contained in:
Maxime Coste 2014-04-26 15:09:42 +01:00
parent b370f91025
commit 919f121cef

View File

@ -810,6 +810,9 @@ Kakoune state:
Some helper commands can be used to define composite commands: Some helper commands can be used to define composite commands:
* +:prompt <prompt> <register> <command>+: Prompt the user for a string, when
the user validates, store the result in given <register> and run <commmand>.
the -init <str> switch allows setting initial content.
* +: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.
+menu+ can take a -auto-single argument, to automatically run commands +menu+ can take a -auto-single argument, to automatically run commands