config: allow per-account address-book-cmd
When using multiple accounts, the contacts may be different. Allow using specific address book commands per account. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Moritz Poldrack <moritz@poldrack.dev>
This commit is contained in:
parent
f2dac06029
commit
db00accb57
4 changed files with 12 additions and 1 deletions
widgets
|
@ -82,7 +82,11 @@ func NewComposer(aerc *Aerc, acct *AccountView, conf *config.AercConfig,
|
|||
}
|
||||
|
||||
templateData := templates.ParseTemplateData(h, orig)
|
||||
cmpl := completer.New(conf.Compose.AddressBookCmd, func(err error) {
|
||||
cmd := acctConfig.AddressBookCmd
|
||||
if cmd == "" {
|
||||
cmd = conf.Compose.AddressBookCmd
|
||||
}
|
||||
cmpl := completer.New(cmd, func(err error) {
|
||||
aerc.PushError(
|
||||
fmt.Sprintf("could not complete header: %v", err))
|
||||
worker.Logger.Printf("could not complete header: %v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue