]> git.madduck.net Git - etc/mutt.git/blob - .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:

0d56ca1e8b64e32f9d88f718ce7c06a22d30a22a
[etc/mutt.git] / .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   L       "<list-reply><save-message>=store<enter>"
23 macro index             S       "<tag-prefix><save-message>=store<enter>" "save messages to store"
24 macro pager             S       "<save-message>=store<enter>" "save message to store"
25
26 macro index,pager       E       '<enter-command> source "$my_confdir/supersede-header X-Tickle get-timestamp|"<enter><next-undeleted><enter-command> push S<enter>' "schedule messages with tickler"
27 macro index,pager       \ex     '<enter-command> source "$my_confdir/remove-header X-Postponed|"<enter>' "release postponed messages"
28
29 macro index,pager       \es     "<change-folder>=store<enter>" "go to store folder"
30 macro index,pager       \ec     "<change-folder>=debian/debconf<enter>" "go to debconf folder"
31 macro index,pager       \ed     "<change-folder>=debian<enter>" "go to debian folder"
32 macro index,pager       \ei     "<change-folder>=inbox<enter>" "go to inbox folder"
33 macro index,pager       \ea     "<change-folder>=ardex<enter>" "go to ardex folder"
34 macro index,pager       \ek     "<change-folder>=kbkg<enter>" "go to kbkg folder"
35 macro index,pager       \eu     "<change-folder>=uniwh<enter>" "go to uniwh folder"
36 macro index,pager       \et     "<change-folder>=toni<enter>" "go to toni folder"
37
38 bind index              \eT     tag-thread
39 bind index,pager        \eK     mail-key
40
41 macro index,pager       \eR     "<enter-command> source $my_confdir/muttrc<enter>" "reload muttrc"
42 macro compose   \eR     "<enter-command> source $my_confdir/muttrc<enter>" "reload muttrc"
43
44 macro index             X       "<tag-prefix><save-message>=retrain/spam<enter>" "retrain message as spam"
45 macro pager             X       "<save-message>=retrain/spam<enter>" "retrain message as spam"
46 macro index             Z       "<tag-prefix><save-message>=retrain/ham<enter>" "retrain message as ham"
47 macro pager             Z       "<save-message>=retrain/ham<enter>" "retrain message as ham"
48
49 macro index,pager       \Cb     "<enter-command> set my_pipe_decode=\$pipe_decode<enter><enter-command> set pipe_decode<enter><pipe-message>/usr/bin/urlview<enter><enter-command> set pipe_decode=\$my_pipe_decode<enter>" "invoke urlview"
50
51 macro compose   Y       '<edit-fcc><kill-line><enter><send-message>' "send message without storing"
52 macro compose   \Cy     '<pgp-menu>c<send-message>' "send message without signing"
53 macro compose   \CY     '<pgp-menu>cY' "send message without storing signing"
54 macro compose   N       '<enter-command> unset fcc_attach<enter>' "do not fcc-store attachment"
55
56 macro index,pager       F       '<limit>~L ' "search for correspondents"
57 macro index,pager       \ef     '<limit>~(~L )<left>' "search for correspondents (show complete threads)"
58
59 bind index,pager        \en     search-opposite
60
61 macro pager     p       '<pipe-message>less -c<enter>' "pipe message into pager"
62
63 bind pager              [       half-up
64 bind pager              ]       half-down
65
66 macro index,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"
67
68 #TODO this is a hack until switch-profile does not readd headers.
69 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"
70 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"
71
72 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"
73
74 macro index,pager       \er     "<enter-command> set my_editor=\$editor<enter><enter-command> set editor=~/.mutt/reuse-message \$my_editor<enter><reply><enter-command> set editor=\$my_editor<enter>" "invoke normal editor to edit message"
75 macro index,pager       \eg     "<enter-command> set my_editor=\$editor<enter><enter-command> set editor=~/.mutt/reuse-message \$my_editor<enter><group-reply><enter-command> set editor=\$my_editor<enter>" "invoke normal editor to edit message"
76 macro index,pager       \el     "<enter-command> set my_editor=\$editor<enter><enter-command> set editor=~/.mutt/reuse-message \$my_editor<enter><list-reply><enter-command> set editor=\$my_editor<enter>" "invoke normal editor to edit message"
77
78 # override F6 from notmuch-mutt
79 macro index             <F6>    "<enter-command><enter>" "do nothing"
80
81 macro attach    e       "<enter-command> set my_mailcap_path=\$mailcap_path<enter><enter-command> set mailcap_path=~/.mutt/mailcap.editing<enter><view-mailcap><enter-command> set mailcap_path=\$my_mailcap_path<enter>" "edit temporary file of attachment"
82
83 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>"
84
85 macro index,pager       <F10>   "<enter-command> set my_pipe_decode=\$pipe_decode<enter><enter-command> unset pipe_decode<enter><pipe-message>~/.mutt/viewmailattachments<enter><enter-command> set pipe_decode=\$my_pipe_decode<enter>" "view attachments in browser"
86
87 # vim:sw=12:noet:sts=12:ts=12:ft=muttrc