From eec7660274886e9ca9f9cce69814fe27f774ddf3 Mon Sep 17 00:00:00 2001 From: Philip Sequeira Date: Sat, 10 Sep 2016 15:08:27 -0400 Subject: TOOLS/zsh.pl: don't filter files by extension Closes #2273. See that issue for explanation/discussion. I'll add examples on how to filter in your own config to the wiki soon: https://github.com/mpv-player/mpv/wiki/Zsh-completion-customization --- TOOLS/zsh.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'TOOLS/zsh.pl') diff --git a/TOOLS/zsh.pl b/TOOLS/zsh.pl index 7d354b4c47..f4491e3971 100755 --- a/TOOLS/zsh.pl +++ b/TOOLS/zsh.pl @@ -144,8 +144,7 @@ $runtime_completions local expl _tags files urls while _tags; do - _requested files expl 'media file' _files -g \\ - "*.(#i)(asf|asx|avi|f4v|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|wv)(-.)" && rc=0 + _requested files expl 'media file' _files && rc=0 if _requested urls; then while _next_label urls expl URL; do _urls "\$expl[@]" && rc=0 -- cgit v1.2.3