File System Path Completer (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.
complete_path
(prefix, line, start, end, ctx, cdpath=True, filtfunc=None)[source]¶ Completes based on a path name.
-
xonsh.completers.path.
subsequence_match
(ref, typed, csc)[source]¶ Detects whether typed is a subsequence of ref.
Returns
True
if the characters intyped
appear (in order) inref
, regardless of exactly where inref
they occur. Ifcsc
isFalse
, ignore the case ofref
andtyped
.Used in “subsequence” path completion (e.g.,
~/u/ro
expands to~/lou/carcohl
)