kislyuk / argcomplete

Python and tab completion, better together.
https://kislyuk.github.io/argcomplete/
Apache License 2.0
1.39k stars 129 forks source link

zsh: Allow to use external script. #453

Closed dibalavs closed 8 months ago

dibalavs commented 8 months ago

This patch add support external script for zsh: Example:

complete_func() { echo "complete func called" > done.txt }

eval "$(register-python-argcomplete -e complete_func arc_test)"

Bug: #452

codecov-commenter commented 8 months ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (65775b1) 80.92% compared to head (7f3087d) 80.92%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #453 +/- ## ======================================== Coverage 80.92% 80.92% ======================================== Files 10 10 Lines 776 776 ======================================== Hits 628 628 Misses 148 148 ``` | [Files](https://app.codecov.io/gh/kislyuk/argcomplete/pull/453?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andrey+Kislyuk) | Coverage Δ | | |---|---|---| | [argcomplete/shell\_integration.py](https://app.codecov.io/gh/kislyuk/argcomplete/pull/453?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andrey+Kislyuk#diff-YXJnY29tcGxldGUvc2hlbGxfaW50ZWdyYXRpb24ucHk=) | `89.47% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.