mirror of https://github.com/mpv-player/mpv
zsh-completion: complete --gpu-context
This is made by possible by 96e1f1dfa5
standardizing --gpu-context's
help output. This changes the check to complete any Object settings list
so it will automatically work with future options of this kind.
This commit is contained in:
parent
fbfc9d22c7
commit
2f4c550b4b
|
@ -101,7 +101,7 @@ function _mpv_generate_arguments {
|
|||
|
||||
entry+='->files'
|
||||
|
||||
elif [[ $name == (ao|vo|af|vf|profile|audio-device|vulkan-device) ]]; then
|
||||
elif [[ $desc = 'Object settings list'* || $name == (profile|audio-device|vulkan-device) ]]; then
|
||||
|
||||
entry+="->parse-help-$name"
|
||||
|
||||
|
|
Loading…
Reference in New Issue