Skip to content
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

Autocomplete support? #241

Closed
HelloGrayson opened this issue Oct 27, 2014 · 11 comments
Closed

Autocomplete support? #241

HelloGrayson opened this issue Oct 27, 2014 · 11 comments

Comments

@HelloGrayson
Copy link

Would love to enhance my various commands with tab/auto completion.

Thoughts?

@untitaker
Copy link
Contributor

Absolutely.

@HelloGrayson
Copy link
Author

Right. I mean for arguments. Check out how Symfony2 does it:

http://symfony.com/blog/new-in-symfony-2-2-autocomplete-on-the-command-line

@HelloGrayson
Copy link
Author

AKA user-provided auto-complete.

@nathanjordan
Copy link

I think this would be an excellent addition to Click. Custom autocomplete would make this package certified badass™.

@abtris
Copy link

abtris commented Nov 26, 2014

Bash Autocomplete is nice, but I need support for ZSH too. Is possible use genzshcomp for support ZSH in similar way as bash?

@rymndhng
Copy link

Yes, this would be awesome. My current workaround has been to loop and create multiple commands -- but this approach is not as flexible, i.e. supporting wildcard arguments

@ShahriyarR
Copy link

Documentation states, that for activating bash completion i must edit .bashrc file manually. Is there any way to automize this process using setuptools setup.py?

I wrote a command line script , where i want to activate click bash completion while installing it.

@cbandera
Copy link
Contributor

+1
I would love this feature too. Is anybody working on this or is planning to?

@stopthatcow
Copy link
Contributor

Hey guys, I know this is an old thread, but I have implemented something that may fufill your needs:
Check out this PR: #755
Feedback is welcome!

@stopthatcow
Copy link
Contributor

Also, for zsh support this thread has a solution: #323

@jcrotts
Copy link
Contributor

jcrotts commented May 15, 2018

#755 looks like it solves this for bash, and #323 has a workaround for zsh, closing this issue.

@jcrotts jcrotts closed this as completed May 15, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants