diff --git a/etc/_mpv.zsh b/etc/_mpv.zsh index 5c2bbf97d6..c34a381ab2 100644 --- a/etc/_mpv.zsh +++ b/etc/_mpv.zsh @@ -109,6 +109,10 @@ function _mpv_generate_arguments { entry+="->parse-help-profile" + elif [[ $name == h(|elp) ]]; then + + entry+="->help-options" + fi _mpv_completion_arguments+="$entry" @@ -252,6 +256,10 @@ case $state in done ;; + help-options) + compadd ${${${_mpv_completion_arguments%%=*}:#no-*}:#*-(add|append|clr|pre|set|remove|toggle)} + ;; + esac return rc