Completion Tools (xonsh.completers.tools)¶
- class xonsh.completers.tools.RichCompletion(value, *args, **kwargs)[source]¶
A rich completion that completers can return instead of a string
- Parameters
- value :
The completion’s actual value.
- prefix_len :
Length of the prefix to be replaced in the completion. If None, the default prefix len will be used.
- display :
Text to display in completion option list instead of
value. NOTE: If supplied, the common prefix with other completions won’t be removed.- description :
Extra text to display when the completion is selected.
- style :
Style to pass to prompt-toolkit’s
Completionobject.- append_closing_quote :
Whether to append a closing quote to the completion if the cursor is after it. See
Completer.completeinxonsh/completer.py- append_space :
Whether to append a space after the completion. This is intended to work with
appending_closing_quote, so the space will be added correctly after the closing quote. This is used inCompleter.complete. An extra bonus is that the space won’t show up in thedisplayattribute.
- property value¶
Amalgamation of xonsh.completers package, made up of the following modules, in order:
bash_completion
tools
argparser
commands
completer
environment
imports
man
path
pip
python
_aliases
base
bash
dirs
init