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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for xontrib-argcomplete-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5c59caed8849771c5d9091948a7210a198ddce83d782287476520de1d17c614 |
|
MD5 | 9a0da42591526c9d33a66639edf9b453 |
|
BLAKE2b-256 | ff5558f08eafe8960ea65337097e704d72b11e97992d2542dd3059c88943be44 |
Close
Hashes for xontrib_argcomplete-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b216ac143d1d6bf56af889dabddf3b9d6e65ddc9833be71f40409cc9286f3c30 |
|
MD5 | ed0235e89e8cc64a8ebaf2a981a7d138 |
|
BLAKE2b-256 | 0a8b3e0717e1673a3b89d13a9d9449632270fb86deb628c93f55769cbac3b641 |