Skip to main content

complete_path

Function complete_path 

Source
pub fn complete_path(typed: &str) -> (String, usize)
Expand description

Complete a partially typed path against the directory it names.

Returns the longest unambiguous extension of typed, and how many candidates there were. Reading a directory can block, so this is only ever called from a worker — never in response to a keystroke on the interface thread.