about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-10-25 02:00:25 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-10-25 02:00:25 +0000
commitd4923fce080a5da7628d830f27ff3742cfc06e8f (patch)
treefe881ee3798b610e78a501321fd1507bfdb30c57 /Completion/Unix
parentc9d6e5e4cf6b4aaaea40dfc133238ea9f9d6bf11 (diff)
downloadzsh-d4923fce080a5da7628d830f27ff3742cfc06e8f.tar.gz
zsh-d4923fce080a5da7628d830f27ff3742cfc06e8f.tar.xz
zsh-d4923fce080a5da7628d830f27ff3742cfc06e8f.zip
22553: Merge new completion onto 4.2 branch.
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_metaflac57
1 files changed, 57 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_metaflac b/Completion/Unix/Command/_metaflac
new file mode 100644
index 000000000..d7cdb05d2
--- /dev/null
+++ b/Completion/Unix/Command/_metaflac
@@ -0,0 +1,57 @@
+#compdef metaflac
+
+local _metaflac_opts _metaflac_shorts _metaflac_opers
+typeset -A opt_args
+function _metaflac_tags () {
+    echo "\n\nBEEP - $line - BEEP\n\n"
+}
+_metaflac_opts=( 
+    '--preserve-modtime' 
+    '--with-filename[prefix output with filename]' 
+    '--no-filename' 
+    '--dont-use-padding[always rewrite the file]' 
+)
+_metaflac_shorts=(
+    '--show-md5sum'
+    '--show-min-blocksize'
+    '--show-max-blocksize'
+    '--show-min-framesize'
+    '--show-max-framesize'
+    '--show-sample-rate'
+    '--show-channels'
+    '--show-bps'
+    '--show-total-samples'
+    '--show-vendor-tag'
+    '--show-tag=:FLAC tags:_metaflac_tags'
+    '--remove-tag=:FLAC tags: '
+    '--remove-first-tag=:FLAC tags: '
+    '--remove-all-tags'
+    '--set-tag=:FLAC tag and value: '
+    '--import-tags-from=:flat file:_files'
+    '--export-tags-to=:new file: '
+    '--import-cuesheet-from=:file:_files'
+    '--export-cuesheet-to=:new file: '
+    '--add-replay-gain'
+    '--add-seekpoint=:: '
+    '--add-padding=length'
+
+)
+_metaflac_opers=(
+    '--block-number=:: '
+    '--block-type=:: '
+    '--except-block-type=:: '
+    '--application-data-format=:: '
+    '--remove'
+    '--remove-all'
+    '--merge-padding'
+    '--sort-padding'
+)
+
+_arguments "$_metaflac_opts[@]" \
+    "*:FLAC file:_files -g \*.flac" \
+    - "shortcuts" \
+    "$_metaflac_shorts[@]" \
+    - "(operations)" \
+    "$_metaflac_opers[@]" \
+    && return 0
+