[Pkg-zsh-devel] Bug#941214: Completion for mutt's -a command line switch

Oliver Kiddle opk at zsh.org
Wed Sep 20 23:52:19 BST 2023


On 20 Jun, martin f krafft wrote:
> mutt allows attaching files from the command-line:
>
> mutt -a /file/one /file/two /file/three -- …
>
> Basically, the rules are: -a takes a list of files, terminated by --.
>
> Zsh's completion of mutt treats the argument to -a as optional:
>
>   '*-a[attach file using MIME]::file attachment:_files' \

In theory, this should be possible with:

    '*-a[attach file using MIME]:*--:file attachment:_files' \

However, _mutt also calls _arguments with -S so if it sees -- it takes
that as the end of all options and only completes recipients
thereafter.

Oliver



More information about the Pkg-zsh-devel mailing list