Module linefeed::complete

source ·
Expand description

Provides utilities for implementing word completion

Structs

Represents a single possible completion
Completer type that performs no completion
Performs completion by searching for filenames matching the word prefix.

Enums

Specifies an optional suffix to override the default value

Traits

Performs completion for Prompter when triggered by a user input sequence

Functions

Returns a sorted list of paths whose prefix matches the given path.
Escapes a word by prefixing a backslash (\\) to non-word characters.
Returns the start position of a word with non-word characters escaped by backslash (\\).
Unescapes a word by removing the backslash (\\) from escaped characters.
Returns the start position of the word that ends at the end of the string.