aboutsummaryrefslogtreecommitdiffstats
path: root/src/_mix
diff options
context:
space:
mode:
authorAlex Vondrak <ajvondrak@gmail.com>2021-03-16 13:44:40 -0700
committerGitHub <noreply@github.com>2021-03-16 13:44:40 -0700
commitb152a4901fc1314ef24ba5bc2ad1f6f5e824f9e7 (patch)
treea2ba09ffacc7bb62aa3162939591ec2973af09ed /src/_mix
parentMerge pull request #784 from Z5483/shellcheck (diff)
downloadzsh-completions-b152a4901fc1314ef24ba5bc2ad1f6f5e824f9e7.tar
zsh-completions-b152a4901fc1314ef24ba5bc2ad1f6f5e824f9e7.tar.gz
zsh-completions-b152a4901fc1314ef24ba5bc2ad1f6f5e824f9e7.tar.bz2
zsh-completions-b152a4901fc1314ef24ba5bc2ad1f6f5e824f9e7.tar.lz
zsh-completions-b152a4901fc1314ef24ba5bc2ad1f6f5e824f9e7.tar.xz
zsh-completions-b152a4901fc1314ef24ba5bc2ad1f6f5e824f9e7.tar.zst
zsh-completions-b152a4901fc1314ef24ba5bc2ad1f6f5e824f9e7.zip
Autocomplete files for mix run
Previously, `mix run <tab>` would not expand into anything, even though the [`mix run`](https://hexdocs.pm/mix/Mix.Tasks.Run.html) task accepts filenames as inputs. This commit collapses the growing list of such cases (`test`, `format`, `run`) into one clause that autocompletes files. Although `mix run` accepts several different `--flags`, the autocompletion isn't currently set up to deal with subcommands' specific options, so I'm punting on that part.
Diffstat (limited to 'src/_mix')
-rw-r--r--src/_mix6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/_mix b/src/_mix
index c92432c..989adef 100644
--- a/src/_mix
+++ b/src/_mix
@@ -227,11 +227,7 @@ case $state in
_arguments ':feature:__task_list'
return
;;
- (test)
- _arguments ':PATH:_files'
- return
- ;;
- (format)
+ (test|format|run)
_arguments ':PATH:_files'
return
;;