Merge remote-tracking branch 'Screwtapello/define-menu-option'

This commit is contained in:
Maxime Coste 2021-01-19 20:55:53 +11:00
commit ada3801f00

View File

@ -441,6 +441,19 @@ New commands can be defined using the *define-command* command:
the command accepts a *num* parameter, which can be either a number, the command accepts a *num* parameter, which can be either a number,
or of the form <min>..<max>, with both <min> and <max> omittable or of the form <min>..<max>, with both <min> and <max> omittable
*-override*:::
allow the new command to replace an existing one with the same name
*-hidden*:::
do not show the command in command name completions
*-docstring*:::
define the documentation string for the command
*-menu*:::
the suggestions generated by the completion options are the only
permitted parameters.
*-file-completion*::: *-file-completion*:::
try file completion on any parameter passed to this command try file completion on any parameter passed to this command
@ -484,15 +497,6 @@ New commands can be defined using the *define-command* command:
- *kak_token_to_complete*:::: - *kak_token_to_complete*::::
Index of the token being completed in the command line. Index of the token being completed in the command line.
*-override*:::
allow the new command to replace an existing one with the same name
*-hidden*:::
do not show the command in command name completions
*-docstring*:::
define the documentation string for the command
Using shell expansion allows defining complex commands or accessing Using shell expansion allows defining complex commands or accessing
Kakoune's state: Kakoune's state: