-
Notifications
You must be signed in to change notification settings - Fork 83
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
Integration with pythons argument parser #146
Comments
Is the question about how to automatically make completion scripts from bash/zsh/fish/etc work in Clink? That isn't feasible without embedding those entire shells and scripting languages into Clink, which would be going a bit overboard, and would never be able to be fully functional. However, there is a Or, is the question about porting one or two specific completion scripts to Clink? |
@binyaminyblatt I'm the new maintainer for this repo, and I'm also the maintainer for Clink. I think you are asking for python-specific completions while typing a python command line. Is that an accurate understanding of what argcomplete (etc) do? It would certainly be possible to write one for Clink. I don't use python, myself, so it's not something I'm likely to create in the near future. Someone else is welcome to do so and submit a pull request. |
Python has packages which can interact with the shell to make the arguments accessible so it would probably need to be both a script and a package for python so it would be accessible from both sides the package would pass the information to the script This by the way is the way the argument parser for bash works |
@binyaminyblatt can you show 2 or 3 specific examples of completions that you would like? What do I need to install to use the python commands? |
argcomplete is the package that works on Linux it doesn't work on Windows but it would need to do something similar |
I don't have the interest or time to go learn everything for how to install python, configure it to support argcomplete, and figure out example completions to test. If someone can explain those parts, then I might be willing to work on this. Otherwise, someone else is welcome to work on this. I'm willing to do the work of actually hooking it up -- but I'm not willing to go research and learn everything starting from zero knowledge; that's too expensive for me. |
I don't know if it's possible or if this even is the right place to be requesting it but there are a lot of autocomplete integrations for pythons argument parser or bash and zsh I was wondering if it was possible to either hook into one of those or have a similar one for clink
https://github.com/kislyuk/argcomplete
The text was updated successfully, but these errors were encountered: