From 0a101dc86aa151e0e1eaa2233fda32664a334c9d Mon Sep 17 00:00:00 2001 From: Philip Sequeira Date: Tue, 12 Apr 2016 01:00:33 -0400 Subject: [PATCH] Updated Zsh completion customization (markdown) --- Zsh-completion-customization.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zsh-completion-customization.md b/Zsh-completion-customization.md index ad728d1..61089b4 100644 --- a/Zsh-completion-customization.md +++ b/Zsh-completion-customization.md @@ -4,11 +4,11 @@ The following code snippets go in `~/.zshrc` unless otherwise specified. The Zsh completion that ships with mpv currently has a hard-coded list of filename extensions that it completes by default, which does not include all possible files that mpv can play. If you want to add extensions to the list, use something like this (adds .jpg and .png files): - zstyle ':completion:*:complete:mpv:*' file-patterns '*.(#i)(jpg|jpeg|png)(-.) %p:globbed-files *(-/):directories' '*:all-files' + zstyle ':completion:*:*:mpv:*' file-patterns '*.(#i)(jpg|jpeg|png)(-.) %p:globbed-files *(-/):directories' '*:all-files' If you want to use *only* your specified extensions, ignoring the ones that come with the script, use something like this instead: - zstyle ':completion:*:complete:mpv:*' file-patterns '*.(#i)(jpg|jpeg|png)(-.) *(-/):directories' '*:all-files' + zstyle ':completion:*:*:mpv:*' file-patterns '*.(#i)(jpg|jpeg|png)(-.) *(-/):directories' '*:all-files' See [Issue #2273](https://github.com/mpv-player/mpv/issues/2273) for a discussion on what the defaults should be. Input is wanted.