diff options
author | Lucas Hoffmann <lucc@posteo.de> | 2018-08-18 12:50:26 +0200 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2018-10-01 10:13:12 +0100 |
commit | cd0c6b44f9c641941bd7077ad31607e1b0237267 (patch) | |
tree | fab5fae0ee9a2685ae31b38881c2db62f871f8fa /extra | |
parent | 50f80e9e06d7a7c2d4fc405f2c6cb3622cd3148a (diff) |
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.
Diffstat (limited to 'extra')
-rw-r--r-- | extra/completion/alot-completion.zsh | 7 |
1 files changed, 4 insertions, 3 deletions
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() |