astral-sh / uv

An extremely fast Python package installer and resolver, written in Rust.
https://astral.sh/
Apache License 2.0
11.72k stars 321 forks source link

Zsh completion: Options and flags are not completed when they come after ordered arguments #3249

Open AndydeCleyre opened 2 weeks ago

AndydeCleyre commented 2 weeks ago
$ 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.

$ uv --version
uv 0.1.37
$ uname
Linux
zanieb commented 2 weeks ago

-- is typically used to indicate you are passing options through to another tool. Is there a reason you're using it like this?

AndydeCleyre commented 2 weeks ago

Sorry, I wasn't clear -- I'm not using dash, dash, space, but instead: dash, dash, tab

zanieb commented 2 weeks ago

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?

charliermarsh commented 2 weeks ago

Dumb question but just confirming that you went through the steps to generate / install the Zsh completions?

AndydeCleyre commented 2 weeks ago

@charliermarsh

Yes, of course, thanks. The completion in general works, but is more sensitive to order than the actual command.