-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Free shell auto-completion #21
Comments
Usually this requires modifying So, requiring high effort and having low impact, this is given low priority, unless someone implements that and makes a pull request. |
Check out infi.docopt_completion. It generates shell auto-completion for a given docopt utility. easy_install infi.docopt_completion The code is available here: |
@wiggin15 Test at
The test command is:
I think this means is OK, but still can not use tab-completion at |
You're right, looks like this happens because docopt-completion does not sanitize the "." in ".py". Please open an issue in the docopt-completion repository (link above) and I'll fix it. In the meantime you can change the name from docopt_example.py to docopt_example and see if that works. |
Thanks! Cause notebook not at hand, will report it tomorrow morning. Honghe at Android Gmail
|
Taking a note from a crystal library completion, if you pass in the option But if you notice, for autocompletion to work best, the library ( |
This is utterly wonderful. I knew about docopt for 3 years or so but only now made the connection to autogenerating tab completion in bash. May the bless you all. |
For those who might come across this issue, I've written a simple (not complete) completion script for bash : If your command is called xt, you simply have to add the following script, followed by
|
No description provided.
The text was updated successfully, but these errors were encountered: