Completion in ZSH doesn't understand that arguments follow certain options #4955
Labels
C: autocomplete
Autocompletion in shells (pip completion)
type: enhancement
Improvements to functionality
Description:
Completion in Zsh uses the older
compctl
builtin and returns completions for long options that take arguments with a trailing equals sign. But compctl/Zsh doesn't understand that as meaning that the option takes an argument and adds a space after the equals sign and also tries to complete the next argument if you remove the equals sign as yet another option.No idea if this is fixable using the older compctl, might want to migrate to the newer compsys... With compsys you will probably have to modify the completion output from Pip or preprocess it in shell code so that it fits what something like
_arguments
expects.#4842 will make it complete file names by re-implementing that inside pip instead of letting the shell handle it which means certain stuff like colored file names won't work or
zstyle
related settings for file name completion. And it still won't fix the fact that Zsh will add a space after the equals sign...What I've run:
The text was updated successfully, but these errors were encountered: