# vim: filetype=muttrc bind pager j next-line bind pager k previous-line bind attach,index,pager \CD next-page bind attach,index,pager \CU previous-page bind pager gg top bind pager G bottom bind attach,index g noop bind attach,index gg first-entry 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 "unset wait_keyread -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms~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'\`\"" "show only messages matching a notmuch pattern" # 'a' shows all messages again (supersedes default binding) macro index a "all\n" "show all messages (undo limit)"