-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros
59 lines (54 loc) · 4.14 KB
/
macros
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# vim: set ft=muttrc
#
# macros for mutt.
# NOTE: use "," to define shortcuts if possible. NOT ";" since it is used as tag-prefix
#
# macros for generic mode
macro generic ,sm ":source $HOME/.mutt/muttrc\r"
macro generic,index,pager \ca "<shell-escape>abook<return>" "launch abook"
macro index,pager A "<pipe-message>abook --add-email<return>" "add the sender address to abook"
# Macros for use in the index.
macro index ",v" "<pipe-message>vim -<enter>" # View the message in less.
macro index ",R" "<tag-pattern>~N<enter><tag-prefix>N<tag-prefix>t" # make all new mails as Read
macro index ",N" "<limit>~N<enter>" # filter out all New mails
macro index ",U" "<limit>~U<enter>" # filter out all Unread mails
macro index "\'" "<clear-flag>r" # Mark as un-replied
macro index "y" "<sync-mailbox><change-folder>?<toggle-mailboxes>" # "-y" screen
macro index "<esc>v" "<pipe-message>urlview<enter>" "open url with urlview"
#macro index "<esc>b" "<pipe-message>lbdb-fetchaddr<enter>" # Store address details in lbdb.
#macro index "<esc>h" "<pipe-message>mailhops<enter>" # View the path of the mail.
#macro index "<esc>f" "<pipe-message>view-x-face<enter>" # View the X-Face (if there is one).
#macro index "\Cs\Co" "<limit>~h \"X-SpamProbe: GOOD\"<enter><last-entry>" # View good emails.
#macro index "\Cs\Cs" "<limit>~h \"X-SpamProbe: SPAM\"<enter><last-entry>" # View bad emails.
# Macros for use in the pager.
macro pager ",v" "<pipe-message>vim -<enter>" # View the message in less.
macro pager "w" "<enter-command>set invsmart_wrap invmarkers<enter>" # Toggle wrap stuff
macro pager "y" "<sync-mailbox><change-folder>?<toggle-mailboxes>" # "-y" screen
macro pager "<esc>0" "<enter-command>set pager_index_lines=0<enter>" # Change PIL size
macro pager "<esc>1" "<enter-command>set pager_index_lines=2<enter>" # Change PIL size
macro pager "<esc>2" "<enter-command>set pager_index_lines=4<enter>" # Change PIL size
macro pager "<esc>3" "<enter-command>set pager_index_lines=6<enter>" # Change PIL size
macro pager "<esc>4" "<enter-command>set pager_index_lines=8<enter>" # Change PIL size
macro pager "<esc>5" "<enter-command>set pager_index_lines=10<enter>" # Change PIL size
macro pager "<esc>6" "<enter-command>set pager_index_lines=12<enter>" # Change PIL size
macro pager "<esc>7" "<enter-command>set pager_index_lines=14<enter>" # Change PIL size
macro pager "<esc>8" "<enter-command>set pager_index_lines=16<enter>" # Change PIL size
macro pager "<esc>9" "<enter-command>set pager_index_lines=18<enter>" # Change PIL size
macro pager "<esc>v" "<pipe-message>urlview<enter>" "open url with urlview"
macro pager "<esc>b" "<pipe-message>lbdb-fetchaddr<enter>" # Store address details in lbdb.
macro pager "<esc>h" "<pipe-message>mailhops<enter>" # View the path of the mail.
macro pager "<esc>l" "<enter-command>set invpipe_decode<enter>\
#<pipe-message>linkify|w3m -T text/html<enter><enter-command>\
#set invpipe_decode<enter>" # View the message in w3m.
#macro pager "\Cs\Cs" "<pipe-message>spamprobe -T score<enter>" # What's the score for this message?
#macro pager "\Cs\Cj" "<pipe-message>spamprobe spam<enter>" # This message is junk.
#macro pager "\Cs\Cg" "<pipe-message>spamprobe good<enter>" # This message is good.
macro generic ",1" "<change-folder> =INBOX<enter>"
macro generic ",2" "<change-folder> =[Gmail].Drafts<enter>"
macro generic ",3" "<change-folder> =[Gmail].Starred<enter>"
macro generic ",4" "<change-folder> =[Gmail].Sent\ Mail<enter>"
macro generic ",6" "<change-folder> =Seravia<enter>"
macro generic ",7" "<change-folder> =[list]tmux<enter>"
macro generic ",8" "<change-folder> =[list]xptemplate<enter>"
macro generic ",9" "<change-folder> =[list]<tab><tab>"
#macro generic ",0" "<change-folder> imaps://imap.exoweb.net/INBOX<enter>"