xonsh.completers.path¶
- xonsh.completers.path.cd_in_command(line)[source]¶
Returns True if “cd” is a token in the line, False otherwise.
- xonsh.completers.path.contextual_complete_path(command: CommandContext, cdpath=True, filtfunc=None)[source]¶
- xonsh.completers.path.subsequence_match(ref, typed, csc)[source]¶
Detects whether typed is a subsequence of ref.
Returns
Trueif the characters intypedappear (in order) inref, regardless of exactly where inrefthey occur. IfcscisFalse, ignore the case ofrefandtyped.Used in “subsequence” path completion (e.g.,
~/u/roexpands to~/lou/carcohl)