From 9dc100948c8b14bb59d2639929ed5d0076110910 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 21 Jun 2020 00:40:23 +1200 Subject: Add notmuch-mutt macro --- mutt/muttrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'mutt') diff --git a/mutt/muttrc b/mutt/muttrc index db74a42d..8ff08aa5 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -248,6 +248,18 @@ macro index,pager \\a \ 'abook --add-email-quiet' \ 'Add sender address to abook' +# Janky notmuch-mutt search macro, cleaned up a little +macro index \\l '\ +set my_pipe_decode=$pipe_decode \ + my_wait_key=$wait_key \ + nopipe_decode \ + nowait_key\ +notmuch-mutt --prompt search --remove-dups\ +~/.cache/notmuch/mutt/results\ +set pipe_decode=$my_pipe_decode \ + wait_key=$my_wait_key' \ + 'notmuch: search mail' + # Shortcut to reload configuration set my_muttrc \ = ~/.config/mutt/muttrc -- cgit v1.2.3