From 992c9b931a1e41ea100a2f616c6080478fc56665 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 25 Sep 2015 17:01:24 +0200 Subject: .mutt/macros.rc: Adding notmuch-mutt macros. --- .mutt/macros.rc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.mutt/macros.rc b/.mutt/macros.rc index 3b35e1c..9348be9 100644 --- a/.mutt/macros.rc +++ b/.mutt/macros.rc @@ -8,3 +8,25 @@ macro index,pager 'source ~/.mutt/dave@c-base. macro index,pager A \ "khard add-email" \ "add the sender email address to khard" + +# notmuch-mutt +macro index \ + "set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ + notmuch-mutt -r --prompt search\ + `echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`\ + set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ + "notmuch: search mail" + +macro index \ + "set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ + notmuch-mutt -r thread\ + `echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`\ + set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ + "notmuch: reconstruct thread" + +macro index \ + "set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ + notmuch-mutt tag -- -inbox\ + set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ + "notmuch: remove message from inbox" + -- cgit v1.2.3-70-g09d2