From 0b7f3ae4c0a9adf1bf09b438769d6df92295fffb Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 4 Nov 2020 15:09:29 +0100 Subject: [mutt] add notmuch macros * search mail * reconstruct thread --- mutt/notmuch | 14 ++++++++++++++ muttrc | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 mutt/notmuch diff --git a/mutt/notmuch b/mutt/notmuch new file mode 100644 index 0000000..cc04dae --- /dev/null +++ b/mutt/notmuch @@ -0,0 +1,14 @@ +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" + diff --git a/muttrc b/muttrc index 3057291..345f620 100644 --- a/muttrc +++ b/muttrc @@ -79,3 +79,7 @@ source $my_cfgdir/bindings ############# MAILING LISTS ################ source $my_cfgdir/mailinglists + +############# NOTMUCH ###################### + +source $my_cfgdir/notmuch -- cgit v1.2.3