mirror of
https://github.com/sammy-ette/Hilbish
synced 2025-08-10 02:52:03 +00:00
2.4 KiB
2.4 KiB
| title | description | layout | menu | ||||
|---|---|---|---|---|---|---|---|
| Module hilbish.completions | tab completions | doc |
|
Introduction
The completions interface deals with tab completions.
Functions
| call(name, query, ctx, fields) -> completionGroups (table), prefix (string) | Calls a completer function. This is mainly used to call |
| handler(line, pos) | The handler function is the callback for tab completion in Hilbish. |
| bins(query, ctx, fields) -> entries (table), prefix (string) | Returns binary/executale completion candidates based on the provided query. |
| files(query, ctx, fields) -> entries (table), prefix (string) | Returns file completion candidates based on the provided query. |
Functions
hilbish.completions.call(name, query, ctx, fields) -> completionGroups (table), prefix (string)
Calls a completer function. This is mainly used to call
a command completer, which will have a name in the form
of command.name, example: command.git.
You can check doc completions for info on the completionGroups return value.
Parameters
This function has no parameters.
hilbish.completions.handler(line, pos)
The handler function is the callback for tab completion in Hilbish. You can check the completions doc for more info.
Parameters
This function has no parameters.
hilbish.completions.bins(query, ctx, fields) -> entries (table), prefix (string)
Returns binary/executale completion candidates based on the provided query.
Parameters
This function has no parameters.