-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: Interface hilbish.completion | ||
description: tab completions | ||
layout: doc | ||
menu: | ||
docs: | ||
parent: "API" | ||
--- | ||
|
||
## 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 | ||
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. | ||
|
||
### handler(line, pos) | ||
The handler function is the callback for tab completion in Hilbish. | ||
You can check the completions doc for more info. | ||
|
||
### 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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters