Skip to main content

Adding support of kislyuk/argcomplete to xonsh.

Project description

Adding support of argcomplete to xonsh.

If you like the idea click ⭐ on the repo and stay tuned by watching releases.

Install

xpip install xontrib-argcomplete
echo 'xontrib load argcomplete' >> ~/.xonshrc
# Reload xonsh

Usage

The argcomplete xonsh completer will be activated with this cases:

./script.py        <Tab>
./path/script.py   <Tab>
python script.py   <Tab>
./script.xsh       <Tab>
./path/script.xsh  <Tab>
xonsh script.xsh   <Tab>

The PYTHON_ARGCOMPLETE_OK marker should be found in the first 10 lines of the file.

Example

xpip install xontrib-argcomplete
xontrib load argcomplete

cd /tmp && git clone https://github.com/anki-code/xontrib-argcomplete
cd xontrib-argcomplete/tests

python proto.py <Tab>
# Suggestions: --help --proto -h

./proto.py --proto tt<Tab>
# Suggestions: http https

./proto.xsh --proto tt<Tab>
# Suggestions: http https

Development

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xontrib-argcomplete-0.0.8.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

xontrib_argcomplete-0.0.8-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file xontrib-argcomplete-0.0.8.tar.gz.

File metadata

  • Download URL: xontrib-argcomplete-0.0.8.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for xontrib-argcomplete-0.0.8.tar.gz
Algorithm Hash digest
SHA256 c5c59caed8849771c5d9091948a7210a198ddce83d782287476520de1d17c614
MD5 9a0da42591526c9d33a66639edf9b453
BLAKE2b-256 ff5558f08eafe8960ea65337097e704d72b11e97992d2542dd3059c88943be44

See more details on using hashes here.

File details

Details for the file xontrib_argcomplete-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: xontrib_argcomplete-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for xontrib_argcomplete-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b216ac143d1d6bf56af889dabddf3b9d6e65ddc9833be71f40409cc9286f3c30
MD5 ed0235e89e8cc64a8ebaf2a981a7d138
BLAKE2b-256 0a8b3e0717e1673a3b89d13a9d9449632270fb86deb628c93f55769cbac3b641

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page