From 88be667390f75022cb54245ec7daed4af9674fdd Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sun, 18 Aug 2024 14:06:43 -0700 Subject: fix: neomutt new mail recipient tab complete error When type recipient "abc def" and press tab to complete, abc and def will be send as two separate argument to abook if use old `abook --mutt-query '%s'`. Change to `abook --mutt-query %s` or `abook --mutt-query` both works. See comment, `man neomuttrc` query_command. --- home/xyz/.config/neomutt/neomuttrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'home/xyz') diff --git a/home/xyz/.config/neomutt/neomuttrc b/home/xyz/.config/neomutt/neomuttrc index 2d04d1da..5f4996ac 100644 --- a/home/xyz/.config/neomutt/neomuttrc +++ b/home/xyz/.config/neomutt/neomuttrc @@ -109,7 +109,11 @@ set delete=yes # no prompt for moving emails set confirm_append=no -set query_command="abook --mutt-query '%s'" +# man neomuttrc, query_command: "NeoMutt will add quotes around the string +# substituted for "%s" automatically according to shell quoting rules, so you +# should avoid adding your own. If no "%s" is found in the string, NeoMutt will +# append the user's query to the end of the string." +set query_command="abook --mutt-query" # https://neomutt.org/guide/advancedusage#8-%C2%A0external-address-queries # completion when ask for address input # default ^T -- cgit v1.2.3-70-g09d2