diff options
author | Guangxiong Lin <[email protected]> | 2022-05-01 11:47:02 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-05-01 11:47:02 +0800 |
commit | 4a3cf55bc11ba190a3d13ff8aa0db4a5b69428e6 (patch) | |
tree | 72c48970e5136386e89172735fed401b277f9126 /.mutt | |
parent | 40772b2757cd94110df1b2eecca7b5f640d7d0c5 (diff) | |
download | dotfiles-4a3cf55bc11ba190a3d13ff8aa0db4a5b69428e6.tar.gz dotfiles-4a3cf55bc11ba190a3d13ff8aa0db4a5b69428e6.tar.bz2 dotfiles-4a3cf55bc11ba190a3d13ff8aa0db4a5b69428e6.zip |
Update notmuch with mutt
Diffstat (limited to '.mutt')
-rw-r--r-- | .mutt/keybindings | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.mutt/keybindings b/.mutt/keybindings index 60e3178..f648e70 100644 --- a/.mutt/keybindings +++ b/.mutt/keybindings @@ -12,3 +12,8 @@ bind attach,index G last-entry bind index,pager \Cn sidebar-next bind index,pager \Cp sidebar-prev + +# '^L' performs a notmuch query, showing only the results +macro index \Cl "<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;s/\\+/\\\\+/g for@a;s/=/\\\\=/g 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)" |