aboutsummaryrefslogtreecommitdiffstats
path: root/.mutt
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-09-25 17:01:24 +0200
committerDavid Runge <dave@sleepmap.de>2015-09-25 17:01:24 +0200
commit992c9b931a1e41ea100a2f616c6080478fc56665 (patch)
treed72c88155c3fdcc8e908a13c4d1a5ac2c71ba55a /.mutt
parent7b8fdb4bada4fb8079088fd8b29df17b142b7087 (diff)
downloaddotfiles-992c9b931a1e41ea100a2f616c6080478fc56665.tar.gz
dotfiles-992c9b931a1e41ea100a2f616c6080478fc56665.tar.bz2
dotfiles-992c9b931a1e41ea100a2f616c6080478fc56665.tar.xz
dotfiles-992c9b931a1e41ea100a2f616c6080478fc56665.zip
.mutt/macros.rc: Adding notmuch-mutt macros.
Diffstat (limited to '.mutt')
-rw-r--r--.mutt/macros.rc22
1 files changed, 22 insertions, 0 deletions
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 <f4> '<sync-mailbox><enter-command>source ~/.mutt/dave@c-base.
macro index,pager A \
"<pipe-message>khard add-email<return>" \
"add the sender email address to khard"
+
+# notmuch-mutt
+macro index <F8> \
+ "<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
+ <shell-escape>notmuch-mutt -r --prompt search<enter>\
+ <change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
+ <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
+ "notmuch: search mail"
+
+macro index <F9> \
+ "<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
+ <pipe-message>notmuch-mutt -r thread<enter>\
+ <change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
+ <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
+ "notmuch: reconstruct thread"
+
+macro index <F6> \
+ "<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
+ <pipe-message>notmuch-mutt tag -- -inbox<enter>\
+ <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
+ "notmuch: remove message from inbox"
+