diff options
author | Ben Burwell <ben@benburwell.com> | 2019-12-20 13:21:35 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-12-21 09:23:22 -0500 |
commit | fad375c673e7bab4b01bbe6a774fae460ce62b86 (patch) | |
tree | 52b5f904a53dca3d5e8b98adac91ac0ffcdbb646 /config | |
parent | 4d00a2b4d6ef3b4bea5c06553538b4010b7c09c2 (diff) | |
download | aerc-fad375c673e7bab4b01bbe6a774fae460ce62b86.tar.gz |
Add address book completion in composer
Complete email address fields in the message composer with an external
address book command, compatible with mutt's query_cmd.
Diffstat (limited to 'config')
-rw-r--r-- | config/aerc.conf.in | 12 | ||||
-rw-r--r-- | config/config.go | 5 |
2 files changed, 15 insertions, 2 deletions
diff --git a/config/aerc.conf.in b/config/aerc.conf.in index 660a5258..5feeac00 100644 --- a/config/aerc.conf.in +++ b/config/aerc.conf.in @@ -124,6 +124,18 @@ editor= # Default: To|From,Subject header-layout=To|From,Subject +# +# Specifies the command to be used to tab-complete email addresses. Any +# occurrence of "%s" in the address-book-cmd will be replaced with what the +# user has typed so far. +# +# The command must output the completions to standard output, one completion +# per line. Each line must be tab-delimited, with an email address occurring as +# the first field. Only the email address field is required. The second field, +# if present, will be treated as the contact name. Additional fields are +# ignored. +address-book-cmd= + [filters] # # Filters allow you to pipe an email body through a shell command to render diff --git a/config/config.go b/config/config.go index d6afef66..e5f73959 100644 --- a/config/config.go +++ b/config/config.go @@ -79,8 +79,9 @@ type BindingConfig struct { } type ComposeConfig struct { - Editor string `ini:"editor"` - HeaderLayout [][]string `ini:"-"` + Editor string `ini:"editor"` + HeaderLayout [][]string `ini:"-"` + AddressBookCmd string `ini:"address-book-cmd"` } type FilterConfig struct { |