Prompt Toolkit Completer (xonsh.ptk.completer)

Completer implementation to use with prompt_toolkit.

class xonsh.ptk.completer.PromptToolkitCompleter(completer, ctx)[source]

Simple prompt_toolkit Completer object.

It just redirects requests to normal Xonsh completer.

Takes instance of xonsh.completer.Completer and dict with context.

get_completions(document, complete_event)[source]

Returns a generator for list of completions.

reserve_space()[source]