rustyline

Module completion

Source
Expand description

Completion API

Structs§

Enums§

Traits§

Functions§

  • 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.
  • 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.
  • Remove escape char