Completion Tools (xonsh.completers.tools)

Xonsh completer tools.

xonsh.completers.tools.get_filter_function()[source]

Return an appropriate filtering function for completions, given the valid of $CASE_SENSITIVE_COMPLETIONS

xonsh.completers.tools.justify(s, max_length, left_pad=0)[source]

Re-wrap the string s so that each line is no more than max_length characters long, padding all lines but the first on the left with the string left_pad.