-
Notifications
You must be signed in to change notification settings - Fork 1
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 enhanced #1
Comments
I've finished with However, the implementation is a little tedious and not easy using. I'll work on searching some more productive methods (maybe learn from As so far:
Edit: Finally, I'd like to follow this example. However, only |
Thanks, it does work. But it can be better (maybe not the goal), such as: fav track When i press tab, will display the results from fav track bvid or fav track listid Just like what happens when So I think we can keep this issue open. PS: By the way, fav will regard the av number or cid (the id of one of the p in the video) as the bid, then the error will occur. Maybe I should open a new issue to talk about this problem? |
This may be called dynamic completion. I feel it's hard to work on. clap-rs/clap#1232 Moreover, I am not very proficient in using the I'll reopen this issue and keep on finding better solution. |
clap support completion, so the cost of adding this feature is very low.
generating at compile-time or generating at runtime, please see: https://docs.rs/clap_complete/latest/clap_complete/
Consider supporting the following shells:
Some links that may be useful:
https://docs.rs/clap_complete_nushell/latest/clap_complete_nushell/
The text was updated successfully, but these errors were encountered: