diff options
| author | Anton Bobov <abobov@gmail.com> | 2016-08-23 08:43:59 +0500 |
|---|---|---|
| committer | Anton Bobov <abobov@gmail.com> | 2016-08-23 08:46:07 +0500 |
| commit | a207648a018395e57e8767aa0cacde8271ac3031 (patch) | |
| tree | 32b770bd4222b4a421e29b4820182ee7a1813449 /files/.mutt | |
| parent | 1f94fcdadd85965578ffcd62097ee1e17b91bbe0 (diff) | |
[mutt] Add notmuch macros.
Diffstat (limited to 'files/.mutt')
| -rw-r--r-- | files/.mutt/macros | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/files/.mutt/macros b/files/.mutt/macros index dab9ad5..6cbd0bb 100644 --- a/files/.mutt/macros +++ b/files/.mutt/macros @@ -9,6 +9,10 @@ macro index .t "l~d<1d\n" "list today messages" macro index O "<shell-escape>offlineimap<enter>" "sync all mailboxes" macro index o "<shell-escape>offlineimap -qf INBOX<enter>" "sync INBOX" +# Notmuch +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" + + # Threads macros macro index,pager za "<Esc>v" |
