Bug#753296: Acknowledgement (mpv completion fails)
Yuri D'Elia
wavexx at thregr.org
Mon Jun 30 13:38:48 UTC 2014
On 06/30/2014 01:40 PM, Alessandro Ghedini wrote:
>>> The problem you're describing looks like a broken completions-cache
>>> file. Before you proceed, try this:
>>>
>>> % rm ~/.zcompdump
>>> % exec zsh
>>>
>>> And see if the problem persists.
>>
>> It persists.
>
> Can you post the content of /usr/share/zsh/vendor-completions/_mpv? Also, what
> architecture are you on? The script is generated at build time, so it might be
> that the generation broke on some platforms.
Attaching.
-------------- next part --------------
#compdef mpv
# mpv zsh completion
_x_arguments -C -s \
'*:files:->mfiles'
case $state in
ao)
local -a values
values=(
)
_describe -t values 'audio outputs' values
;;
vo)
local -a values
values=(
)
_describe -t values 'video outputs' values
;;
af)
local -a values
values=(
)
_describe -t values 'audio filters' values
;;
vf)
local -a values
values=(
)
_describe -t values 'video filters' values
;;
mfiles)
_tags files urls
while _tags; do
_requested files expl 'media file' _files -g \
"*.(#i)(asf|asx|avi|flac|flv|m1v|m2p|m2v|m4v|mjpg|mka|mkv|mov|mp3|mp4|mpe|mpeg|mpg|ogg|ogm|ogv|qt|rm|ts|vob|wav|webm|wma|wmv)(-.)" && ret=0
if _requested urls; then
while _next_label urls expl URL; do
_urls "$expl[@]" && ret=0
compadd -S '' "$expl[@]" {dvd,vcd,cdda,cddb,tv}:// && ret=0
done
fi
(( ret )) || return 0
done
;;
esac
More information about the pkg-multimedia-maintainers
mailing list