mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-06 09:01:13 +02:00
27315: update for mpc 0.17.
This commit is contained in:
parent
5cd9c4b500
commit
ff1a8cff74
2 changed files with 47 additions and 24 deletions
|
@ -1,7 +1,7 @@
|
||||||
2009-10-24 Clint Adams <clint@zsh.org>
|
2009-10-24 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
* 27314: Completion/Unix/Command/_mpc: update list of mpc
|
* 27314, 27315: Completion/Unix/Command/_mpc: update for
|
||||||
search types.
|
mpc 0.17.
|
||||||
|
|
||||||
2009-10-22 Peter Stephenson <pws@csr.com>
|
2009-10-22 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
|
@ -12273,5 +12273,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.4796 $
|
* $Revision: 1.4797 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -26,36 +26,43 @@ _mpc_command() {
|
||||||
|
|
||||||
mpc_cmds=(
|
mpc_cmds=(
|
||||||
add:"add a song to the current playlist"
|
add:"add a song to the current playlist"
|
||||||
crop:"remove all songs except for the currently playing song"
|
|
||||||
del:"remove a song from the current playlist"
|
|
||||||
play:"start playing"
|
|
||||||
next:"play the next song in the current playlist"
|
|
||||||
prev:"play the previous song in the current playlist"
|
|
||||||
pause:"pause the currently playing song"
|
|
||||||
toggle:"toggles Play/Pause, plays if stopped"
|
|
||||||
stop:"stop the currently playing playlists"
|
|
||||||
seek:"seek to the position specified in percent"
|
|
||||||
clear:"clear the current playlist"
|
clear:"clear the current playlist"
|
||||||
outputs:"show the current outputs"
|
crop:"remove all songs except for the currently playing song"
|
||||||
enable:"enable a output"
|
current:"show the currently playing song"
|
||||||
|
crossfade:"set and display crossfade settings"
|
||||||
|
del:"remove a song from the current playlist"
|
||||||
disable:"disable a output"
|
disable:"disable a output"
|
||||||
shuffle:"shuffle the current playlist"
|
enable:"enable a output"
|
||||||
move:"move song in playlist"
|
idle:"wait until an event occurs"
|
||||||
playlist:"print the current playlist"
|
idleloop:"loop waiting for events"
|
||||||
listall:"list all songs in the music directory"
|
listall:"list all songs in the music directory"
|
||||||
|
load:"load file as a playlist"
|
||||||
ls:"list the contents of specified directory"
|
ls:"list the contents of specified directory"
|
||||||
lsplaylists:"list currently available playlists"
|
lsplaylists:"list currently available playlists"
|
||||||
load:"load file as a playlist"
|
move:"move song in playlist"
|
||||||
save:"save a playlist to file"
|
next:"play the next song in the current playlist"
|
||||||
rm:"remove a playlist"
|
outputs:"show the current outputs"
|
||||||
volume:"set volume"
|
pause:"pause the currently playing song"
|
||||||
repeat:"toggle repeat mode, or specify state"
|
play:"start playing"
|
||||||
|
playlist:"print the current playlist"
|
||||||
|
prev:"play the previous song in the current playlist"
|
||||||
random:"toggle random mode, or specify state"
|
random:"toggle random mode, or specify state"
|
||||||
|
repeat:"toggle repeat mode, or specify state"
|
||||||
|
single:"toggle single mode, or specify state"
|
||||||
|
consume:"toggle consume mode, or specify state"
|
||||||
|
rm:"remove a playlist"
|
||||||
|
save:"save a playlist to file"
|
||||||
search:"search for a song"
|
search:"search for a song"
|
||||||
crossfade:"set and display crossfade settings"
|
find:"search for a song, exact match"
|
||||||
update:"scan music directory for updates"
|
list:"list all tags of given type"
|
||||||
|
seek:"seek to the position specified in percent"
|
||||||
|
shuffle:"shuffle the current playlist"
|
||||||
stats:"display statistics about MPD"
|
stats:"display statistics about MPD"
|
||||||
|
stop:"stop the currently playing playlists"
|
||||||
|
toggle:"toggles Play/Pause, plays if stopped"
|
||||||
|
update:"scan music directory for updates"
|
||||||
version:"report version of MPD"
|
version:"report version of MPD"
|
||||||
|
volume:"set volume"
|
||||||
status:"display MPD status"
|
status:"display MPD status"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -234,6 +241,14 @@ _mpc_random() {
|
||||||
_mpc_helper_bool
|
_mpc_helper_bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_mpc_single() {
|
||||||
|
_mpc_helper_bool
|
||||||
|
}
|
||||||
|
|
||||||
|
_mpc_consume() {
|
||||||
|
_mpc_helper_bool
|
||||||
|
}
|
||||||
|
|
||||||
_mpc_search() {
|
_mpc_search() {
|
||||||
local list expl
|
local list expl
|
||||||
list=(album artist title track name genre date composer performer comment disc filename any)
|
list=(album artist title track name genre date composer performer comment disc filename any)
|
||||||
|
@ -245,6 +260,14 @@ _mpc_search() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_mpc_find() {
|
||||||
|
_mpc_search "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
_mpc_list() {
|
||||||
|
_mpc_search "$@"
|
||||||
|
}
|
||||||
|
|
||||||
_mpc_update() {
|
_mpc_update() {
|
||||||
_mpc_helper_files
|
_mpc_helper_files
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue