summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2018-06-12 12:45:55 +0300
committerOliver Kiddle <okiddle@yahoo.co.uk>2019-02-09 10:08:20 +0100
commit109975b1b57a347bee1085b2a0b26ec004445a24 (patch)
treedbeda3bd47b74a7b2ae7c35651beb619521c3726
parenta8c9daf7f16a5c0fcd92ff15be09a50aef0a7895 (diff)
downloadzsh-109975b1b57a347bee1085b2a0b26ec004445a24.tar.gz
zsh-109975b1b57a347bee1085b2a0b26ec004445a24.zip
gitlab !5: Add new abcde completion.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_abcde50
2 files changed, 55 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bbaa1ecb2..cca84054c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-02-09 Doron Behar <doron.behar@gmail.com>
+
+ * gitlab !5: Completion/Unix/Command/_abcde:
+ New abcde completion.
+
2019-02-09 Hiroki Noda <kubo39@gmail.com>
* github #31: Completion/Unix/Command/_nm,
diff --git a/Completion/Unix/Command/_abcde b/Completion/Unix/Command/_abcde
new file mode 100644
index 000000000..361b43091
--- /dev/null
+++ b/Completion/Unix/Command/_abcde
@@ -0,0 +1,50 @@
+#compdef abcde
+
+(( $+functions[_abcde_fields] )) ||
+_abcde_fields(){
+ _values -s , field year genre
+}
+
+(( $+functions[_abcde_actions] )) ||
+_abcde_actions(){
+ _values -s , action cddb cue read getalbumart embedalbumart normalize encode tag move replaygain playlist clean
+}
+
+_arguments -s \
+ '(-t -T -p)-1[encode the whole CD in a single file]' \
+ '-a[comma-delimited list of actions to perform]:action:_abcde_actions' \
+ '-b[enable batch mode normalization]' \
+ '-B[enable automatic embedding of album art with certain containers]' \
+ '-c[specify an additional configuration file to parse]:config:_files' \
+ '-C[resume a session for discid when you no longer have the CD available]:discid' \
+ '-d[CD-ROM block device that contains audio tracks to be read]:cd-rom-file:_files' \
+ '-D[capture debugging information]' \
+ '-e[erase information about encoded tracks from the internal status file]' \
+ '-f[force the removal of the temporary ABCDETEMPDIR directory]' \
+ "-g[enable lame's --nogap option]" \
+ '-G[download album art using the getalbumart function]' \
+ '(- :)-h[get help information]' \
+ '-j[start a specified number of encoder processes at once]:number' \
+ '-k[keep the wav files after encoding]' \
+ '-l[use the low-diskspace algorithm]' \
+ '-L[use a local CDDB repository]' \
+ '-m[create DOS-style playlists, modifying the resulting one by adding CRLF line endings those to work]' \
+ "-n[don't query CDDB database]" \
+ '-N[non interactive mode]' \
+ '-o[select output type]:outputtype:(vorbis ogg mp3 flac spx mpc m4a wav wv ape opus mka aiff)' \
+ "-p[pads track numbers with 0's]" \
+ '-P[use Unix PIPES to read and encode in one step]' \
+ '-r[remote encode on this comma-delimited list of machines using distmp3]:hosts:_sequence _hosts' \
+ '-s[fields to be shown in the CDDB parsed entries]:field:_abcde_fields' \
+ '-S[set the speed of the CD drive]:speed' \
+ '-t[start the numbering of the tracks at a given number]:track-number' \
+ '-T[start the numbering of the tracks at a given number and change internal tag numbering]:track-number' \
+ '-U[set CDDBPROTO to version 5]' \
+ '(- :)-v[show the version and exit]' \
+ '-V[be more verbose]' \
+ '-x[eject the CD when all tracks have been read]' \
+ '-X[use an alternative "cue2discid" implementation]:cue2discid' \
+ '-w[add a comment to the tracks ripped from the CD]:comment' \
+ "-W[concatenate CD's]:cd-number" \
+ '-z[debug mode]' \
+ '*:tracks:'