]> git.madduck.net Git - etc/mutt.git/blob - .config/mutt/keybindings

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

make blocks italic
[etc/mutt.git] / .config / mutt / keybindings
1 macro generic,pager <F1> "<shell-escape> zcat /usr/share/doc/mutt/manual.txt.gz | sensible-pager<enter>" "show Mutt documentation"
2
3 bind index,pager        |       pipe-message
4 bind index,pager        !       flag-message
5 bind index,pager        \eP     print-message
6 bind index,pager        <up>    previous-entry
7 bind index,pager        <down>  next-entry
8 bind index,pager        \eU     undelete-subthread
9 bind index,pager        \eD     delete-subthread
10
11 bind index              0       first-entry
12 bind index              G       last-entry
13 bind pager              0       top
14 bind pager              G       bottom
15
16 bind pager,index        <backtab>       previous-unread
17
18 macro index     p       "<enter-command><enter>" "do nothing"
19
20 bind index              h       noop
21
22 macro index             \es     "<tag-prefix><enter-command> set my_weed=\$weed<enter><enter-command> set my_resolve=\$resolve<enter><enter-command> set noweed noresolve<enter><decode-save>^<enter><next-entry><clear-flag>n<enter-command> set weed=\$my_weed<enter><enter-command> set resolve=\$my_resolve<enter>" "decode message to current folder"
23 macro pager             \es     "<enter-command> set my_weed=\$weed<enter><enter-command> set my_resolve=\$resolve<enter><enter-command> set noweed noresolve<enter><decode-save>^<enter><next-entry><clear-flag>n<enter-command> set weed=\$my_weed<enter><enter-command> set resolve=\$my_resolve<enter>" "decode message to current folder"
24 macro index             \eS     "<tag-prefix><save-message><<enter>" "save messages to store"
25 macro pager             \eS     "<save-message><<enter>" "save message to store"
26 macro index             S       "<tag-prefix><enter-command> set my_weed=\$weed<enter><enter-command> set my_resolve=\$resolve<enter><enter-command> set noweed noresolve<enter><decode-save><<enter><next-entry><enter-command> set weed=\$my_weed<enter><enter-command> set resolve=\$my_resolve<enter>" "decode message to $record folder"
27 macro pager             S       "<enter-command> set my_weed=\$weed<enter><enter-command> set my_resolve=\$resolve<enter><enter-command> set noweed noresolve<enter><decode-save><<enter><next-entry><enter-command> set weed=\$my_weed<enter><enter-command> set resolve=\$my_resolve<enter><display-toggle-weed><display-toggle-weed>" "decode message to $record folder"
28
29 macro index,pager       E       '<enter-command> source "$my_confdir/supersede-header X-Tickle get-timestamp|"<enter><next-undeleted><save-message>=resubmit<enter>' "schedule messages with tickler"
30 macro index,pager       \ex     '<enter-command> source "$my_confdir/remove-header X-Postponed|"<enter>' "release postponed messages"
31
32 macro index,pager       \e,     "<change-folder><<enter>" "go to $record folder"
33 macro index,pager       \e.     "<change-folder>><enter>" "go to $spool folder"
34 macro index,pager       \e1     "<change-folder>!<enter>" "go to inbox folder"
35
36 bind index              \eT     tag-thread
37 bind index,pager        \eK     mail-key
38
39 macro index,pager       \eR     "<enter-command> source $my_confdir/muttrc<enter>" "reload muttrc"
40 macro compose   \eR     "<enter-command> source $my_confdir/muttrc<enter>" "reload muttrc"
41
42 macro index             X       "<tag-prefix><save-message>=retrain/spam<enter>" "retrain message as spam"
43 macro pager             X       "<save-message>=retrain/spam<enter>" "retrain message as spam"
44 macro index             Z       "<tag-prefix><save-message>=retrain/ham<enter>" "retrain message as ham"
45 macro pager             Z       "<save-message>=retrain/ham<enter>" "retrain message as ham"
46
47 macro index,pager,attach,compose        \Cb     "<enter-command> set my_pipe_decode=\$pipe_decode<enter><enter-command> set pipe_decode<enter><pipe-message>/usr/bin/urlscan<enter><enter-command> set pipe_decode=\$my_pipe_decode<enter>" "invoke urlscan"
48
49 macro compose   Y       '<edit-fcc><kill-line><enter><send-message>' "send message without storing"
50 macro compose   \Cy     '<pgp-menu>c<send-message>' "send message without signing"
51 macro compose   \CY     '<pgp-menu>cY' "send message without storing signing"
52 macro compose   N       '<enter-command> unset fcc_attach<enter>' "do not fcc-store attachment"
53
54 macro index,pager       F       '<limit>~L ' "search for correspondents"
55 macro index,pager       \ef     '<limit>~(~L )<left>' "search for correspondents (show complete threads)"
56
57 bind index,pager        \en     search-opposite
58
59 macro pager     p       '<pipe-message>less -c<enter>' "pipe message into pager"
60
61 bind pager              [       half-up
62 bind pager              ]       half-down
63
64 #TODO this is a hack until switch-profile does not readd headers.
65 macro compose   e       "<enter-command> set my_editor=\$editor<enter><enter-command> set editor=sensible-editor<enter><edit-headers><enter-command> set editor=\$my_editor<enter>" "invoke normal editor to edit message"
66 macro index,pager       e       "<enter-command> set my_editor=\$editor<enter><enter-command> set editor=sensible-editor<enter><edit><enter-command> set editor=\$my_editor<enter>" "invoke normal editor to edit message"
67
68 macro index             \ej     "<enter-command> set my_editor=\$editor<enter><enter-command> source $my_confdir/batch-subject-editor|<enter><tag-prefix><edit><enter-command> set editor=\$my_editor<enter>" "change message subject"
69
70 macro index,pager       \er     "<enter-command> set my_editor=\$editor<enter><enter-command> set editor=\"$my_confdir/reuse-message \$my_editor\"<enter><reply><enter-command> set editor=\$my_editor<enter>" "invoke normal editor to edit message"
71 macro index,pager       \eg     "<enter-command> set my_editor=\$editor<enter><enter-command> set editor=\"$my_confdir/reuse-message \$my_editor\"<enter><group-reply><enter-command> set editor=\$my_editor<enter>" "invoke normal editor to edit message"
72 macro index,pager       \el     "<enter-command> set my_editor=\$editor<enter><enter-command> set editor=\"$my_confdir/reuse-message \$my_editor\"<enter><list-reply><enter-command> set editor=\$my_editor<enter>" "invoke normal editor to edit message"
73
74 # override F6 from notmuch-mutt
75 macro index             <F6>    "<enter-command><enter>" "do nothing"
76
77 macro attach    e       "<enter-command> set my_mailcap_path=\$mailcap_path<enter><enter-command> set mailcap_path=$my_confdir/mailcap.editing<enter><view-mailcap><enter-command> set mailcap_path=\$my_mailcap_path<enter>" "Call pdftool to file attachment"
78 macro attach    E       "<enter-command> set my_mailcap_path=\$mailcap_path<enter><enter-command> set mailcap_path=$my_confdir/mailcap.editing<enter><print-entry><enter-command> set mailcap_path=\$my_mailcap_path<enter>" "Call pdftool to process & file attachment"
79
80 macro index,pager       M       "<enter-command> set my_weed=\$weed<enter><enter-command> set noweed<enter><pipe-message>formail -czx X-RSS-URL: | xargs sensible-browser<enter><enter-command> set weed=\$my_weed<enter>"
81
82 macro index,pager       <F10>   "<enter-command> set my_pipe_decode=\$pipe_decode<enter><enter-command> unset pipe_decode<enter><pipe-message>$my_confdir/viewmailattachments<enter><enter-command> set pipe_decode=\$my_pipe_decode<enter>" "view attachments in browser"
83
84 macro compose   \ez     "<enter-command> set my_editor=\$editor<enter><enter-command> set editor='mogrify -sample 1000x1000'<enter><edit-file><enter-command> set editor=\$my_editor<enter>" "Resize attached image to within 1000x1000"
85
86 bind index,pager        <left>          sidebar-prev
87 bind index,pager        \e<up>          sidebar-prev
88 bind index,pager        <right>         sidebar-next
89 bind index,pager        \e<down>                sidebar-next
90 bind index,pager        \e<return>              sidebar-open
91 bind index,pager        \e<pageup>              sidebar-page-up
92 bind index,pager        \e<pagedown>    sidebar-page-down
93
94 bind index,pager        \\              sidebar-toggle-visible
95
96 # vim:sw=12:noet:sts=12:ts=12:ft=muttrc