diff options
author | Philip Sequeira <phsequei@gmail.com> | 2014-08-14 12:07:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-13 02:03:09 +0200 |
commit | 7c77f0b803b85ad6b811f90755437fc42cbd4104 (patch) | |
tree | 23ae56add12d2e1697e816142a4514e6593b09c2 /TOOLS/zsh.pl | |
parent | 1273febc447c1a069f52d6049d1f8a82a2666ac1 (diff) | |
download | mpv-7c77f0b803b85ad6b811f90755437fc42cbd4104.tar.bz2 mpv-7c77f0b803b85ad6b811f90755437fc42cbd4104.tar.xz |
TOOLS/zsh.pl: complete options that take file names
Diffstat (limited to 'TOOLS/zsh.pl')
-rwxr-xr-x | TOOLS/zsh.pl | 7 |
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 |