-
Notifications
You must be signed in to change notification settings - Fork 891
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
Zsh completion: Options and flags are not completed when they come after ordered arguments #3249
Comments
|
Sorry, I wasn't clear -- I'm not using dash, dash, space, but instead: dash, dash, tab |
Oh! Thanks for clarifying haha interesting. We don't write our own completion tooling, not sure if we can do anything here. I wonder if this reproduces with a trivial clap example or if there's an issue upstream? |
Dumb question but just confirming that you went through the steps to generate / install the Zsh completions? |
Yes, of course, thanks. The completion in general works, but is more sensitive to order than the actual command. |
I can't tell if this is or is not describing the same issue: clap-rs/clap#5244 |
I think prqlc, which also uses clap_complete_command, manages to get this working. For example: $ prqlc watch --help
Watch a directory and compile .prql files to .sql files
Usage: prqlc watch [OPTIONS] <PATH>
Arguments:
<PATH> Directory or file to watch for changes
Options:
--no-format
--no-signature
--color <WHEN> Controls when to use color [default: auto] [possible values: auto, always, never]
-h, --help Print help
$ prqlc watch . --n # TAB does complete options for the Possibly this is due to its use of clap's derive feature 🤷🏼 . |
$ uv pip compile requirements.in -- # mash TAB key here
The command accepts options in this position, but that is not reflected by the current Zsh completion.
The text was updated successfully, but these errors were encountered: