about summary refs log tree commit diff
path: root/Completion/Unix/Command/_mpc
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2023-11-22 00:07:37 +0100
committerOliver Kiddle <opk@zsh.org>2023-11-22 00:07:37 +0100
commit6aa15f57fd5bee298c8320dab19d167dac3d46ed (patch)
treef0559c7140c34ac7aae7772a9b8d9f7debe7f8d9 /Completion/Unix/Command/_mpc
parentfcf080ab578de00c799eb287ef8bdc201c313fee (diff)
downloadzsh-6aa15f57fd5bee298c8320dab19d167dac3d46ed.tar.gz
zsh-6aa15f57fd5bee298c8320dab19d167dac3d46ed.tar.xz
zsh-6aa15f57fd5bee298c8320dab19d167dac3d46ed.zip
52315: completion options update
Diffstat (limited to 'Completion/Unix/Command/_mpc')
-rw-r--r--Completion/Unix/Command/_mpc14
1 files changed, 13 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_mpc b/Completion/Unix/Command/_mpc
index 7f7adc7b4..c3f93878c 100644
--- a/Completion/Unix/Command/_mpc
+++ b/Completion/Unix/Command/_mpc
@@ -26,6 +26,7 @@ _mpc_command() {
 
   mpc_cmds=(
     add:"append a song to the end of the current playlist"
+    albumart:"download album art for the given song and write to stdout"
     cdprev:"compact disk player-like previous command"
     channels:"list the channels that other clients have subscribed to"
     clear:"clear the current playlist"
@@ -57,6 +58,7 @@ _mpc_command() {
     prio:"change song priorities in the queue"
     queued:"show the next queued song"
     random:"toggle random mode, or specify state"
+    readpicture:"download a picture from the given song and write to stdout"
     repeat:"toggle repeat mode, or specify state"
     single:"toggle single mode, or specify state"
     consume:"toggle consume mode, or specify state"
@@ -205,6 +207,10 @@ _mpc_add() {
   _mpc_helper_files
 }
 
+_mpc_albumart() {
+  _mpc_helper_files
+}
+
 _mpc_del() {
   _mpc_helper_songnumbers
 }
@@ -304,8 +310,14 @@ _mpc_random() {
   _mpc_helper_bool
 }
 
+_mpc_readpicture() {
+  _mpc_helper_files
+}
+
 _mpc_single() {
-  _mpc_helper_bool
+  local state
+  _description states expl state
+  compadd "$@" "$expl[@]" on once off
 }
 
 _mpc_consume() {