From cd0c6b44f9c641941bd7077ad31607e1b0237267 Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Sat, 18 Aug 2018 12:50:26 +0200 Subject: Enable zsh completion of recipient addresses This uses the standard zsh completion function for email addresses to complete the --to, --cc and --bcc options for the compose subcommand. --- extra/completion/alot-completion.zsh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'extra') diff --git a/extra/completion/alot-completion.zsh b/extra/completion/alot-completion.zsh index db762bbe..bbd3c54d 100644 --- a/extra/completion/alot-completion.zsh +++ b/extra/completion/alot-completion.zsh @@ -27,13 +27,14 @@ _alot_search() _alot_compose() { _arguments -s : \ + '--attach=[Attach files]:attach:_files -/' \ + '--bcc=[Blind Carbon Copy header]:Recipient (Bcc header):_email_addresses' \ + '--cc=[Carbon Copy header]:Recipient (Cc header):_email_addresses' \ '--omit_signature[do not add signature]' \ '--sender=[From header]' \ '--subject=[Subject header]' \ - '--cc=[Carbon Copy header]' \ - '--bcc=[Blind Carbon Copy header]' \ '--template=[template file to use]' \ - '--attach=[Attach files]:attach:_files -/'\ + '--to=[To header]:Recipient (To header):_email_addresses' \ } _alot() -- cgit v1.2.3