-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Shell completions support #877
Comments
The issue with |
We have four choices:
|
Thanks for bringing this up! Fix For In short, let's stick to what's basically free and live with the shortcomings of |
Summary 💡
What I mean is shell tab completions.
I think those shells should be supported taking priority into account:
Then maybe
PowerShell
for windows, but I don't think any one care 🙃.I thought about using
clap_complete
to auto-generate completion scripts, but after a simple check in source code, we may need to make some changes that could have some complexity to generate them during build-time. However, for run-time this can be easily done, although some additional bloat have to be added to the binary to provide an option like--generate-completions
in the CLI interface. It can be added as a feature for those who want to enable it before building the tool.We may face a problem with auto-generation, like in
git
we may need dynamic completions, for example: display available branches or list of commits or staged files.clap_complete
doesn't support dynamic completions as in clap-rs/clap#1232, but initially it may not be important forgix
.Motivation 🔦
It will make using
gix
easy and more productive.The text was updated successfully, but these errors were encountered: