2022-12-05 23:05:28 +00:00
|
|
|
---
|
|
|
|
name: Interface hilbish.completions
|
|
|
|
description: tab completions
|
|
|
|
layout: apidoc
|
|
|
|
---
|
|
|
|
|
|
|
|
## Introduction
|
|
|
|
The completions interface deals with tab completions.
|
|
|
|
|
2022-12-10 16:48:15 +00:00
|
|
|
## Functions
|
|
|
|
### call(name, query, ctx, fields)
|
|
|
|
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`
|
|
|
|
|
|
|
|
### 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)
|
|
|
|
Returns binary/executale completion candidates based on the provided query.
|
|
|
|
|
|
|
|
### files(query, ctx, fields)
|
|
|
|
Returns file completion candidates based on the provided query.
|
|
|
|
|