-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
tab completion during interactive prompts #173
Comments
The shell command |
Personally, I'm a zsh user, but given a bash solution I'd figure something. On the other hand, tab completion shouldn't be too difficult in pure python. |
The solution i proposed only requires it to be installed, not to be used. |
Good point. However, Independent of bash vs python, displaying matches feels more complex than gathering the matches. Would bash's |
It does the whole prompt-thing for us and saves the result in a shell variable. I think i'll try to write a first implementation later this evening. @mitsuhiko Thoughts? |
See pallets#173. This is not ready for merge yet. - Missing tests, changelog entry, and isn't yet used in click.Path/File. - Is a very myopic implementation. Users will ask for custom completion functions, which bash's read of course doesn't support.
See pallets#173. This is not ready for merge yet. - Missing tests, changelog entry, and isn't yet used in click.Path/File. - Is a very myopic implementation. Users will ask for custom completion functions, which bash's read of course doesn't support.
The whole completion support needs rewriting or cleaning up. It absolutely makes no sense currently. It's wrong and mostly works by chance :) |
I don't think the command completion for bash is technically related to this. |
Um.. anything on this? I see that there's a PR on this at #428 ... but it's sorta old. |
Do we have tab completion for choice option prompts? Does this fit this issues scope after adjusting title and description or shall I open a new issue? |
The completion system has been totally rewritten in #1622. The prompt system can get completions for a parameter by calling |
It would be nice if click would support tab completion when prompting for files and paths.
The text was updated successfully, but these errors were encountered: