Module completion

Command completion

This module provides tab completion for luakit commands. Currently, it supports completing URLs from the user's bookmarks and history, and also supports completing partially typed commands.

Functions

completion.exit_completion ()

Return to command mode with original text and with original cursor position.

completion.update_completions (w, text, pos)

Update the list of completions for some input text.

Parameters

  • w
    Type: table
    The current window table.
  • text
    Type: string
    The current input text.
  • pos
    Type: number
    The current input cursor position.

Fields

completion.funcs

Type: any type
Read-only
Table of functions used to generate completion entries.

completion.order

Type: any type
Read-write
Array of completion functions from funcs, called in order.

Attribution

Authors

Copyright