summaryrefslogtreecommitdiff
path: root/Completion/Linux/Command/_mat
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2022-04-11 00:17:48 +0200
committerAxel Beckert <abe@deuxchevaux.org>2022-04-11 00:17:48 +0200
commitb09f4483416c54c1782824633dfabaf2ec0265b6 (patch)
tree304bc82642862525ae680c7fbaa249663b10ad57 /Completion/Linux/Command/_mat
parent12eb3e5356f2fc3351eed58ef1cef1b8fb83b504 (diff)
parent6e55c920503071e917619b8cb1a188cd35d772db (diff)
downloadzsh-b09f4483416c54c1782824633dfabaf2ec0265b6.tar.gz
zsh-b09f4483416c54c1782824633dfabaf2ec0265b6.zip
New upstream version 5.8.1.2-test
Diffstat (limited to 'Completion/Linux/Command/_mat')
-rw-r--r--Completion/Linux/Command/_mat19
1 files changed, 19 insertions, 0 deletions
diff --git a/Completion/Linux/Command/_mat b/Completion/Linux/Command/_mat
new file mode 100644
index 000000000..ff65167ff
--- /dev/null
+++ b/Completion/Linux/Command/_mat
@@ -0,0 +1,19 @@
+#compdef mat
+
+# Completion for mat 0.6.1 (https://tails.boum.org/blueprint/doc/mat)
+
+local curcontext="$curcontext" state line
+typeset -A opt_args
+_arguments \
+ '(- *)'{-h,--help}'[show help message and exit]' \
+ '(-a --add2archive)'{-a,--add2archive}'[add to output archive non-supported filetypes]' \
+ '(-b --backup)'{-b,--backup}'[keep a backup copy]' \
+ '(-L --low-pdf-quality)'{-L,--low-pdf-quality}'[produces a lighter, but lower quality PDF]' \
+ '(-c --check -b --backup)'{-c,--check}'[check if a file is free of harmful metadatas]' \
+ '(-d --display -b --backup)'{-d,--display}'[list all the harmful metadata of a file without removing them]' \
+ '(- *)'{-l,--list}'[list all supported fileformats]' \
+ '(- *)'{-v,--version}"[show program's version number and exit]" \
+ '*:file:_files -g "*.(tif|tiff|png|jpeg|jpg|jpe|odt|fodt|odx|odp|fodp|ods|fods|odg|fodg|docx|docm|pptx|pptm|xlsx|xlsm|pdf|tar|tar.bz2|tar.gz|zip|mp3|mp2|mp1|mpa|ogg|oga|flac|torrent)"'
+ # they are all that are in --list
+ # might not be all the supported files
+