0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

TOOLS/zsh.pl: don't complete URLs by default

...unless no files match. Fixes #2892.

To get the old behaviour back, use something like:
zstyle ':completion:*:*:mpv:*' tag-order
This commit is contained in:
Philip Sequeira 2016-04-07 23:36:27 -04:00 committed by wm4
parent 6325bdf197
commit 4561649f2d

View File

@ -69,11 +69,17 @@ chomp $profile_comp;
my $tmpl = <<"EOS";
#compdef mpv
# mpv zsh completion
# For customization, see:
# https://github.com/mpv-player/mpv/wiki/Zsh-completion-customization
local curcontext="\$curcontext" state state_descr line
typeset -A opt_args
# By default, don't complete URLs unless no files match
local -a tag_order
zstyle -a ":completion:*:*:$service:*" tag-order tag_order || \
zstyle ":completion:*:*:$service:*" tag-order '!urls'
local rc=1
_arguments -C -S \\