aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mutt/muttrc12
1 files changed, 12 insertions, 0 deletions
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 \
'<pipe-message>abook --add-email-quiet<enter>' \
'Add sender address to abook'
+# Janky notmuch-mutt search macro, cleaned up a little
+macro index \\l '\
+<enter-command>set my_pipe_decode=$pipe_decode \
+ my_wait_key=$wait_key \
+ nopipe_decode \
+ nowait_key<enter>\
+<shell-escape>notmuch-mutt --prompt search --remove-dups<enter>\
+<change-folder-readonly>~/.cache/notmuch/mutt/results<enter>\
+<enter-command>set pipe_decode=$my_pipe_decode \
+ wait_key=$my_wait_key<enter>' \
+ 'notmuch: search mail'
+
# Shortcut to reload configuration
set my_muttrc \
= ~/.config/mutt/muttrc