From 8645836f09bd7d1060f124a18bab534ee4970dc0 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Wed, 6 Nov 2019 06:52:26 +0000 Subject: Add zsh completion support This adds completion support for all the current commands, including completion for sink and source names where they are used. --- examples/zsh-completion/_dtas-xdelay | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/zsh-completion/_dtas-xdelay (limited to 'examples/zsh-completion/_dtas-xdelay') diff --git a/examples/zsh-completion/_dtas-xdelay b/examples/zsh-completion/_dtas-xdelay new file mode 100644 index 0000000..356537d --- /dev/null +++ b/examples/zsh-completion/_dtas-xdelay @@ -0,0 +1,17 @@ +#compdef dtas-xdelay + +# To the extent possible under law, James Rowe has waived all copyright and +# related or neighboring rights to this example. + +_arguments -S \ + "--crossover-frequency=[frequency at which to set the crossover]: :_guard '[0-9]#' frequency" \ + "--lowpass-delay[delay the lowpass frequency instead of the highpass one]" \ + "--channels=[number of channels]:select channels:(1 2)" \ + "--rate=[sample rate of audio]:select sample rate:(22050 44100 48000)" \ + "--type=[file type]:select output type:($(sox --help 2> /dev/null | sed -n '/AUDIO FILE FORMATS/s/.*: //p'))" \ + "--dry-run[only print commands, do not run them]" \ + "--lowpass=[Custom format string for lowpass filter]" \ + "--highpass=[Custom format string for highpass filter]" \ + ":select input1:_files" \ + ":select input2:_files" \ + ":select delay:_guard '[0-9]#' delay" -- cgit v1.2.3-24-ge0c7