Skip to content
Back to top
View this page
Edit this page

# xonsh.completers.path

xonsh.completers.path.cd_in_command(line)

  Returns True if “cd” is a token in the line, False otherwise.

xonsh.completers.path.complete_dir(command: CommandContext)

xonsh.completers.path.complete_path(context)

  Completes path names.

xonsh.completers.path.contextual_complete_path(command: CommandContext, cdpath=True, filtfunc=None)

xonsh.completers.path.subsequence_match(ref, typed, csc)

  Detects whether typed is a subsequence of ref.

  Returns `True` if the characters in `typed` appear (in order) in `ref`, regardless of exactly where in `ref` they occur. If `csc` is `False`, ignore the case of `ref` and `typed`.

  Used in “subsequence” path completion (e.g., `~/u/ro` expands to `~/lou/carcohl`)