-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
register-python-argcomplete - exactly registered name #213
Comments
Did you enable global completion? The other two are likely being handled by that and something is going wrong for the one you registered explicitly. Try setting |
I did not enable global completion but used autocomplete_debug.log.txt |
When you say "./my-awesome-script.py and /path/to/my-awesome-script.py will be completed" do you mean they are completing file names? If so, this is the default behavior of your shell for anything that doesn't have a completer - argcomplete is not doing anything. Can you please attach a minimal script and some instructions on how to reproduce the failure you're seeing? |
@evanunderscore Sorry for the unclear formulation, for A simply minimum example:
These where all the variations I tried, however |
Sorry for not getting back to you sooner, I didn't notice you had edited your post. I think you may have misinterpreted the readme in your initial post - it is saying that line verbatim will not allow you to complete I believe the intent of For For |
Thanks for the help, I will try it as soon as I can and see if it works.
For me something like: Note that the script name is passed directly to complete, meaning it is only tab completed when invoked exactly as it was registered. would have been clearer. I am however not very good in English. |
It does allow you to register the path of a script if you want to, but then that's the only thing you'll be able to complete. |
@DerWeh I've made an attempt at rewording this to reduce confusion. I also removed the |
@DerWeh, I've merged the PR but please comment so we can continue to improve the docs. |
@evanunderscore I think it is rather clear now. Of course I now already know what it is supposed to mean, so it is rather difficult to judge. |
Your documentation says:
But if I try it sadly is exactly the other way around. Arguments after
./my-awesome-script.py
and/path/to/my-awesome-script.py
will be completed, aftermy-awesome-script.py
however they won't.The text was updated successfully, but these errors were encountered: