summaryrefslogtreecommitdiff
path: root/muttrc
diff options
context:
space:
mode:
authorralphe <boyo.ralph@protonmail.com>2018-03-19 07:55:48 +0100
committerLuke Smith <luke@lukesmith.xyz>2018-03-19 09:02:44 -0700
commit6a2b7e914370598d7b2da667854f82e280fd4b26 (patch)
tree5c295a962da27e8c0baf7baaae349ead7f879292 /muttrc
parentf7ce15afaa18816a3fb460b11dff81087fbb82f6 (diff)
Ctrl-R to mark all as read
Diffstat (limited to 'muttrc')
-rw-r--r--muttrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/muttrc b/muttrc
index e5e6d23..9478d8a 100644
--- a/muttrc
+++ b/muttrc
@@ -43,6 +43,9 @@ bind index,pager R group-reply
macro index,pager S '<sync-mailbox>
macro index,pager \Cu |urlview\n
+#Ctrl-R to mark all as read
+macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
+
# Notmuch searching
macro index \Cf "<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"
macro index A "<limit>all\n" "show all messages (undo limit)"