-
Notifications
You must be signed in to change notification settings - Fork 9
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
Feature request: shell completions #19
Comments
I used it before, but I didn't understand quite well how to use it. I managed to get completions for commands but I lost the ability to get completions for files in the current directory. If I could make it complete for groups and files depending on what the command needs that'd be great. |
So went into researching why I couldn't understand how to get proper completions and apparently besides the basic stuff clap_complete does not yet support dynamic completions, so making autocompletion work as intended would take much more effort from my end to maintain it for all the different shells it supports. I'm considering waiting it out until clap complete is ready. If someone is willing to submit a PR with completion scripts for their preferred shells they'd be welcome as well. |
Looks like clap supports dynamic completion now! |
the dynamic completion stuff looks promising but it's still behind an unstable feature flag, I wonder if it would be worth experimenting now or just waiting out for stabilization. |
You could use clap complete to generate shell completions.
The text was updated successfully, but these errors were encountered: