Ed Page

Results 4043 comments of Ed Page

We can't be specializing a solution for `sudo` only. This is likely a general feature of bash completions which is part of what I was hoping you'd dig into. We...

> Firstly, the bug is not present in fish at all and the above works perfectly but, it is present in bash, zsh and Elvish and this depends on how...

> For the example above > > ```console > $ cargo build --example ap --example banana > ``` That doesn't seem to be a nesting situation. If this was prefixed...

Yeah, `sudo cargo ` works for me as well but the filer of rust-lang/cargo#15862 says its not working. If the old completions work, it might still be worth finding a...

Oh right, its not that we aren't completing but that we aren't completing correctly. I'm able to reproduce the problem where, with `sudo`, arguments get swapped

> This exact cargo build --example ap --example banana ? How did you reproduce it ? I followed the issues reproduction steps

We currently support - `--foo=bar`, see https://github.com/clap-rs/clap/blob/4aefa3c1c7b8b9f60cb74bacea6924be3a516aa9/clap_complete/src/dynamic/completer.rs#L106-L124 - `bar`, see https://github.com/clap-rs/clap/blob/4aefa3c1c7b8b9f60cb74bacea6924be3a516aa9/clap_complete/src/dynamic/completer.rs#L150-L155 We need to also support - `-f=bar` - `-f bar` - `--foo bar` - `-fbar` Relevant code in the...

Shan is going to be taking this.

So if I'm understanding correctly, the shell is passing to us partial quoting which is messing up completions. Let's open a separate issue for tracking and resolving that.

I believe @eopb was planning on working on this. I'd recommend coordinating with them