Module completion

Source
Expand description

Completion API

Structs§

FilenameCompleter
A Completer for file and folder names.
Pair
Completion candidate pair

Enums§

Quote
Kind of quote.

Traits§

Candidate
A completion candidate.
Completer
To be called for tab-completion.

Functions§

escape
Escape any break_chars in input string with esc_char. For example, ‘/User Information’ becomes ‘/User\ Information’ when space is a breaking char and ‘\’ the escape char.
extract_word
Given a line and a cursor position, try to find backward the start of a word.
longest_common_prefix
Returns the longest common prefix among all Candidate::replacement()s.
unescape
Remove escape char