mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
22457, R. Ramkumar: fix buggy quoting of zstyle contexts.
This commit is contained in:
parent
49365f4542
commit
9e46734898
2 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
|||
2006-05-25 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 22457, R. Ramkumar: Completion/Unix/Command/_mpc:
|
||||
fix buggy quoting of zstyle contexts.
|
||||
|
||||
* 22456, R. Ramkumar: Completion/Unix/Command/_mpc:
|
||||
update for mpc 0.11.2.
|
||||
|
||||
|
|
|
@ -4,15 +4,15 @@ local OUT foo MPD_MUSIC_DIR MPC_PLAYLIST_MATCHER MPC_FORMAT_STRING
|
|||
|
||||
# set this style to whatever --format string you want to use when
|
||||
# constructing the list of playlist entries
|
||||
zstyle -s ':completion:${curcontext}:*' mpc-format-string MPC_FORMAT_STRING
|
||||
zstyle -s ":completion:${curcontext}:*" mpc-format-string MPC_FORMAT_STRING
|
||||
foo=(--format "${(q)MPC_FORMAT_STRING:-%file%}")
|
||||
|
||||
# set this style to the music_directory of mpd to get _files based completion
|
||||
# for commands like "add"
|
||||
zstyle -s ':completion:${curcontext}:' mpd-music-directory MPD_MUSIC_DIR
|
||||
zstyle -s ":completion:${curcontext}:" mpd-music-directory MPD_MUSIC_DIR
|
||||
|
||||
# matcher used for playlist completion
|
||||
zstyle -s ':completion:${curcontext}:' mpd-playlist-matcher \
|
||||
zstyle -s ":completion:${curcontext}:" mpd-playlist-matcher \
|
||||
MPC_PLAYLIST_MATCHER
|
||||
: ${MPC_PLAYLIST_MATCHER:='m:{a-z}={A-Z} l:|=**'}
|
||||
|
||||
|
|
Loading…
Reference in a new issue