Open Freed-Wu opened 2 years ago
My expertise only goes as far as https://github.com/zsh-users/zsh-completions, but yt-dl has a GNU-like --help
. Although yt-dl has a zsh completion, what happens with this?
compdef _gnu_generic youtube-dl
compdef _gnu_geneirc XXX
is just a fallback solution, it use zsh to parse XXX --help
to get a completion, but it is slow than the provided completion script. And it cannot provide higher functions, such as:
❯ youtube-dl --convert-subs <Tab>
selection
ass lrc srt vtt
❯ youtube-dl --proxy <Tab>
URL
file: ftp:// gopher:// http:// https://
Checklist
Description
WRITE DESCRIPTION HERE
Now, the completion of youtube-dl is: (e.g. zsh)
How about:
It is just
I believe if use
youtube-dl --completion zsh
to generate a shell script, it can be done better.