diff options
| author | Alex Vondrak <ajvondrak@gmail.com> | 2021-03-16 13:44:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-16 13:44:40 -0700 |
| commit | b152a4901fc1314ef24ba5bc2ad1f6f5e824f9e7 (patch) | |
| tree | a2ba09ffacc7bb62aa3162939591ec2973af09ed /src/_mix | |
| parent | Merge pull request #784 from Z5483/shellcheck (diff) | |
| download | zsh-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/_mix | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 ;; |
