From 35f036b08badc0624c9dbb4eccbc184bc9b06362 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 14 May 2022 19:19:16 +0800 Subject: Update mutt keybindings --- .mutt/keybindings | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to '.mutt/keybindings') diff --git a/.mutt/keybindings b/.mutt/keybindings index f648e70..6c51e36 100644 --- a/.mutt/keybindings +++ b/.mutt/keybindings @@ -13,7 +13,12 @@ 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)" +# ',l' performs a notmuch query, showing only the results +macro index ',l' "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" + +macro index 'c' '?^K=' +macro index,pager 's' '?' + +macro attach 'V' "iconv -c --to-code=UTF8 > ~/.cache/mutt/mail.html$BROWSER ~/.cache/mutt/mail.html" +macro attach s ~/Downloads/ + -- cgit v1.2.3