mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 15:24:10 +01:00
Update (sort-of) the :com -complete docs.
This commit is contained in:
@@ -323,8 +323,10 @@ Completion can be enabled by specifying one of the following arguments to the
|
||||
Custom completion
|
||||
|
||||
Custom completion can be provided by specifying the "custom,{func}" argument to
|
||||
-complete. The {func} is called with one argument, the word being completed,
|
||||
and should return an array [start, completions].
|
||||
-complete. The {func} is called with to arguments, a completion context, and
|
||||
an an object describing the command's arguments. It should set the context's
|
||||
'completions' property, or return an object, with 'start' and 'items'
|
||||
properties, describing the completions and where the replacement is to start.
|
||||
|
||||
*start* is the index into the word being completed at which the returned values
|
||||
should be applied and *completions* is a two dimensional array of the form:
|
||||
|
||||
Reference in New Issue
Block a user