Xonsh extension for Jedi support - a powerful, open-source static analysis library for Python that provides high-quality autocompletion and "go-to" functionality for IDEs and text editors.
If you like the idea click ⭐ on the repo and tweet.
To install use pip:
xpip install xontrib-jedi
# or: xpip install -U git+https://github.com/xonsh/xontrib-jedixontrib load jedi
import json
json.<Tab>The xontrib swaps xonsh's built-in python completer for jedi_python.
Other completers in the chain (including xonsh_imp, which completes
__xonsh__.imp.<module>) are left alone, so they keep working as before.
Operator and shell-syntax tokens (<=, **, $(, @(, ,, …) are pulled
from xonsh's own XONSH_EXPR_TOKENS, so the menu stays in sync with the
host xonsh version. Keywords already produced by jedi (if, and, lambda,
…) are filtered out to avoid duplicates.
$XONTRIB_JEDI_FUZZY(bool, defaultFalse) — whenTrue, jedi is called withfuzzy=True, so e.g.ooamatchesfoobar. Off by default since fuzzy mode returns more noisy candidates.$XONTRIB_JEDI_CASE_SENSITIVE(bool, defaultFalse) — whenTrue, jedi matches candidate names case-sensitively (setsjedi.settings.case_insensitive_completion = False). Off by default to match jedi's own default.
Examples:
$XONTRIB_JEDI_FUZZY = True
$XONTRIB_JEDI_CASE_SENSITIVE = True- update the version in
pyproject.toml - Create a new release with the same tag using Github releases
This package was created with xontrib template.