Fix :def documentation in README.asciidoc
This commit is contained in:
parent
982270abf9
commit
63d9218fbe
|
@ -1295,15 +1295,20 @@ New commands can be defined using the `:def` command.
|
||||||
|
|
||||||
`def` can also takes some flags:
|
`def` can also takes some flags:
|
||||||
|
|
||||||
* `-shell-params`: pass parameters given to commands as positional parameters
|
* `-params <num>`: the command accept <num> parameters, with <num>
|
||||||
to any shell expansions used in the command.
|
either a number, or of the form <min>..<max>, with both <min> and
|
||||||
|
<max> omittable.
|
||||||
* `-file-completion`: try file completion on any parameter passed
|
* `-file-completion`: try file completion on any parameter passed
|
||||||
to this command
|
to this command
|
||||||
|
* `-client-completion`: try client name completion on any parameter
|
||||||
|
passed to this command
|
||||||
|
* `-buffer-completion`: try buffer name completion on any parameter
|
||||||
|
passed to this command
|
||||||
* `-shell-completion`: following string is a shell command which takes
|
* `-shell-completion`: following string is a shell command which takes
|
||||||
parameters as positional params and output one
|
parameters as positional params and output one completion candidate
|
||||||
completion candidate per line.
|
per line.
|
||||||
* `-allow-override`: allow the new command to replace an exisiting one
|
* `-allow-override`: allow the new command to replace an exisiting one
|
||||||
with the same name.
|
with the same name.
|
||||||
* `-hidden`: do not show the command in command name completions
|
* `-hidden`: do not show the command in command name completions
|
||||||
* `-docstring`: define the documentation string for the command
|
* `-docstring`: define the documentation string for the command
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user