diff options
author | David Runge <dave@sleepmap.de> | 2015-09-25 17:01:24 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2015-09-25 17:01:24 +0200 |
commit | 992c9b931a1e41ea100a2f616c6080478fc56665 (patch) | |
tree | d72c88155c3fdcc8e908a13c4d1a5ac2c71ba55a | |
parent | 7b8fdb4bada4fb8079088fd8b29df17b142b7087 (diff) | |
download | dotfiles-992c9b931a1e41ea100a2f616c6080478fc56665.tar.gz dotfiles-992c9b931a1e41ea100a2f616c6080478fc56665.tar.bz2 dotfiles-992c9b931a1e41ea100a2f616c6080478fc56665.tar.xz dotfiles-992c9b931a1e41ea100a2f616c6080478fc56665.zip |
.mutt/macros.rc: Adding notmuch-mutt macros.
-rw-r--r-- | .mutt/macros.rc | 22 |
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" + |