mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
37260: add opus to mplayer audio completions
This commit is contained in:
parent
f546ea64df
commit
e5dddecc15
2 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
2015-12-11 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 37260: Simon Hafner: Completion/X/Command/_mplayer:
|
||||
add opus to mplayer audio completions
|
||||
|
||||
* users/20873: Functions/Zle/edit-command-line: disable bracketed
|
||||
paste while running external editor from zle
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ _x_arguments -C -s \
|
|||
'-aofile:file:_files' \
|
||||
'(-nosound)*-aop[specify audio output filter]:audio output filter:->audio-plugins' \
|
||||
'-aspect:ratio' \
|
||||
'-audiofile:audio file:_files -g "(#i)*.(wav|mp3|ogg)(-.)"' \
|
||||
'-audiofile:audio file:_files -g "(#i)*.(wav|mp3|ogg|opus)(-.)"' \
|
||||
-autoq:quality -autosync:factor \
|
||||
-bandwidth:bandwidth\ value -benchmark -bpp:depth \
|
||||
'(-nocache)-cache:cache size (kb)' \
|
||||
|
@ -115,7 +115,7 @@ case "$state" in
|
|||
_tags files urls
|
||||
while _tags; do
|
||||
_requested files expl 'media file' _files -g \
|
||||
"*.(#i)(asf|asx|avi|flac|flv|m1v|m2p|m2v|m4a|m4v|mjpg|mka|mkv|mov|mp3|mp4|mpe|mpeg|mpg|ogg|ogm|ogv|qt|rm|ts|vob|wav|webm|wma|wmv)(-.)" && ret=0
|
||||
"*.(#i)(asf|asx|avi|flac|flv|m1v|m2p|m2v|m4a|m4v|mjpg|mka|mkv|mov|mp3|mp4|mpe|mpeg|mpg|ogg|ogm|ogv|opus|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
|
||||
|
|
Loading…
Reference in a new issue