aboutsummaryrefslogtreecommitdiff
path: root/mutt/.muttrc
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-09-26 18:51:16 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-09-26 18:51:16 -0400
commit7dc07c0dece5e46b4f12d502934ac744f41d2c52 (patch)
treef964bf48d2378f00999e2759fc9b3261ac977f50 /mutt/.muttrc
parent543f19de1eae7aefca39b9cc214e75e00ff7af0f (diff)
Update mutt configs
Diffstat (limited to 'mutt/.muttrc')
-rw-r--r--mutt/.muttrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/mutt/.muttrc b/mutt/.muttrc
index 2765e81..0147133 100644
--- a/mutt/.muttrc
+++ b/mutt/.muttrc
@@ -97,3 +97,8 @@ bind pager N search-opposite
bind browser gg first-entry
bind browser G last-entry
+
+# '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)"