Struct linefeed::complete::PathCompleter
[−]
[src]
pub struct PathCompleter;
Performs completion by searching for filenames matching the word prefix.
Trait Implementations
impl<Term: Terminal> Completer<Term> for PathCompleter
[src]
fn complete(&self,
word: &str,
_reader: &Reader<Term>,
_start: usize,
_end: usize)
-> Option<Vec<Completion>>
word: &str,
_reader: &Reader<Term>,
_start: usize,
_end: usize)
-> Option<Vec<Completion>>
Returns the set of possible completions for the prefix word
.
fn word_start(&self, line: &str, end: usize, _reader: &Reader<Term>) -> usize
Returns the starting position of the word under the cursor. Read more
fn quote<'a>(&self, word: &'a str) -> Cow<'a, str>
Quotes a possible completion for insertion into input. Read more
fn unquote<'a>(&self, word: &'a str) -> Cow<'a, str>
Unquotes a piece of user input before searching for completions. Read more