summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorPhilip Sequeira <phsequei@gmail.com>2014-08-14 12:07:36 +0200
committerwm4 <wm4@nowhere>2014-09-13 02:03:09 +0200
commit7c77f0b803b85ad6b811f90755437fc42cbd4104 (patch)
tree23ae56add12d2e1697e816142a4514e6593b09c2 /TOOLS
parent1273febc447c1a069f52d6049d1f8a82a2666ac1 (diff)
downloadmpv-7c77f0b803b85ad6b811f90755437fc42cbd4104.tar.bz2
mpv-7c77f0b803b85ad6b811f90755437fc42cbd4104.tar.xz
TOOLS/zsh.pl: complete options that take file names
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/zsh.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/TOOLS/zsh.pl b/TOOLS/zsh.pl
index 4f23b934b3..c9943b1000 100755
--- a/TOOLS/zsh.pl
+++ b/TOOLS/zsh.pl
@@ -122,6 +122,12 @@ $vf_str
$profile_comp
;;
+ files)
+ compset -P '*,'
+ compset -S ',*'
+ _files -r ',/ \\t\\n\\-' && rc=0
+ ;;
+
mfiles)
local expl
_tags files urls
@@ -177,6 +183,7 @@ sub parse_opts {
$entry .= '->vf' if ($1 eq '--vf');
$entry .= '->profiles' if ($1 eq '--profile');
$entry .= '->profile' if ($1 eq '--show-profile');
+ $entry .= '->files' if ($line =~ /\[file\]/);
}
push @list, $entry