[][src]Module tcalc_rustyline::completion

Completion API

Structs

FilenameCompleter

Traits

Completer

To be called for tab-completion.

Functions

escape
extract_word

Given a line and a cursor position, try to find backward the start of a word. Return (0, line[..pos]) if no break char has been found. Return the word and its start position (idx, line[idx..pos]) otherwise.

longest_common_prefix
unescape

Remove escape char