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-splitfx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/zsh-completion/_dtas-splitfx (limited to 'examples/zsh-completion/_dtas-splitfx') diff --git a/examples/zsh-completion/_dtas-splitfx b/examples/zsh-completion/_dtas-splitfx new file mode 100644 index 0000000..dfebb64 --- /dev/null +++ b/examples/zsh-completion/_dtas-splitfx @@ -0,0 +1,17 @@ +#compdef dtas-splitfx + +# To the extent possible under law, James Rowe has waived all copyright and +# related or neighboring rights to this example. + +_arguments -S \ + "--dry-run[only print commands, do not run them]" \ + "--jobs=[number of jobs]: :_guard '[0-9]#' value" \ + "--no-dither[don't apply sox dithering]" \ + "--outdir=[select output directory]:select directory:_path_files -/" \ + "--compression=[compression factor for sox]:select compression:({0..8})" \ + "--rate=[sample rate of audio]:select sample rate:(22050 44100 48000)" \ + "--bits=[sample precision]:select precision:(8 16 24)" \ + "--trim=[sections of audio to cut]:select sections:_guard '[0-9,]#' 'value'" \ + "--sox-pipe[use as pipeline]" \ + '1:select splitfx file:_files -g "*.yml"' \ + "*:select file:_files" -- cgit v1.2.3-24-ge0c7