uv icon indicating copy to clipboard operation
uv copied to clipboard

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

Open AndydeCleyre opened this issue 1 year ago • 6 comments

$ 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

AndydeCleyre avatar Apr 24 '24 16:04 AndydeCleyre

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

zanieb avatar Apr 24 '24 16:04 zanieb

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

AndydeCleyre avatar Apr 24 '24 16:04 AndydeCleyre

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?

zanieb avatar Apr 24 '24 17:04 zanieb

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

charliermarsh avatar Apr 24 '24 17:04 charliermarsh

@charliermarsh

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

AndydeCleyre avatar Apr 24 '24 17:04 AndydeCleyre

I can't tell if this is or is not describing the same issue: https://github.com/clap-rs/clap/issues/5244

AndydeCleyre avatar May 14 '24 18:05 AndydeCleyre