muttrc you should have something like the following:
set query_command = "goobook query '%s'" bind editor <tab> complete bind editor ^T complete-query
and if auto-completion of aliases isn't working make sure you don't have:
bind editor <tab> complete-query bind editor ^T complete
Note that the
Ctrl-T runs your
tab auto-completes as appropriate (likely from your alias list).
That took too long to figure out…