commit 7efc05e4f48efc0181508553a5552cb9ab03ed55 parent d3e614a213781ecf16091708c897fa38522392c4 Author: Anders Damsgaard <anders.damsgaard@geo.au.dk> Date: Wed, 24 Feb 2016 15:50:54 -0800 add (simple) notmuch integration Diffstat:
M | .mutt/muttrc | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/.mutt/muttrc b/.mutt/muttrc @@ -150,6 +150,12 @@ macro index o "<shell-escape>offlineimap -qf INBOX<enter>" "run offlineimap to s # View and select urls macro pager U "|urlview<enter>" "call urlview to open links" +# notmuch integration +# 'L' performs a notmuch query, showing only the results +macro index L "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern" +# 'a' shows all messages again (supersedes default <alias> binding) +macro index a "<limit>all\n" "show all messages (undo limit)" + # Get mutt to display its version on startup. push <show-version>