]> 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:

remove logcheck keybindings
[etc/mutt.git] / .mutt / keybindings
1 bind index,pager        |       pipe-message
2 bind index,pager        !       flag-message
3 bind index,pager        \eP     print-message
4 bind index,pager        <up>    previous-entry
5 bind index,pager        <down>  next-entry
6 bind index,pager        \eU     undelete-subthread
7 bind index,pager        \eD     delete-subthread
8
9 bind index              0       first-entry
10 bind index              G       last-entry
11 bind pager              0       top
12 bind pager              G       bottom
13
14 bind pager,index        <backtab>       previous-unread
15
16 macro index     p       "<enter-command><enter>" "do nothing"
17
18 bind index              h       noop
19
20 ##macro index   L       "<list-reply><save-message>=store<enter>"
21 macro index             S       "<tag-prefix><save-message>=store<enter><sync-mailbox>" "save messages to store"
22 macro pager             S       "<save-message>=store<enter><sync-mailbox>" "save message to store"
23
24 macro index             \Cs     '<tag-prefix><save-message>=resubmit<enter><sync-mailbox>' "resubmit messages"
25 macro pager             \Cs     '<save-message>=resubmit<enter><sync-mailbox>' "resubmit message"
26
27 macro index,pager       E       '<enter-command>source "$my_confdir/supersede-header X-Tickle get-timestamp|"<enter><next-undeleted><enter-command>push \Cs<enter>' "schedule messages with tickler"
28 macro index,pager       \ex     '<enter-command>source "$my_confdir/remove-header X-Postponed|"<enter>' "release postponed messages"
29
30 macro index,pager       \es     "<change-folder>=store<enter>" "go to store folder"
31 macro index,pager       \ec     "<change-folder>=debian/debconf<enter>" "go to debconf folder"
32 macro index,pager       \ed     "<change-folder>=debian<enter>" "go to debian folder"
33 macro index,pager       \ei     "<change-folder>=inbox<enter>" "go to inbox folder"
34 macro index,pager       \ea     "<change-folder>=ardex<enter>" "go to ardex folder"
35 macro index,pager       \ek     "<change-folder>=kbkg<enter>" "go to kbkg folder"
36 macro index,pager       \eu     "<change-folder>=uniwh<enter>" "go to uniwh folder"
37 macro index,pager       \et     "<change-folder>=toni<enter>" "go to toni folder"
38
39 bind index              \eT     tag-thread
40 bind index,pager        \eK     mail-key
41
42 macro index,pager       \eR     "<enter-command>source $my_confdir/muttrc<enter>" "reload muttrc"
43 macro compose   \eR     "<enter-command>source $my_confdir/muttrc<enter>" "reload muttrc"
44
45 macro index             X       "<tag-prefix><save-message>=retrain/spam<enter>" "retrain message as spam"
46 macro pager             X       "<save-message>=retrain/spam<enter>" "retrain message as spam"
47 macro index             Z       "<tag-prefix><save-message>=retrain/ham<enter>" "retrain message as ham"
48 macro pager             Z       "<save-message>=retrain/ham<enter>" "retrain message as ham"
49
50 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"
51
52 macro compose   Y       '<edit-fcc><kill-line><enter><send-message>' "send message without storing"
53 macro compose   \Cy     '<pgp-menu>c<send-message>' "send message without signing"
54 macro compose   \CY     '<pgp-menu>cY' "send message without storing signing"
55 macro compose   N       '<enter-command>unset fcc_attach<enter>' "do not fcc-store attachment"
56
57 macro index,pager       F       '<limit>~L ' "search for correspondents"
58 macro index,pager       \ef     '<limit>~(~L )<left>' "search for correspondents (show complete threads)"
59
60 macro index             ~       '<search>~' "shortcut to pattern search"
61 macro pager             ~       '<exit><search>~' "shortcut to pattern search"
62
63 bind index,pager        \en     search-opposite
64
65 macro pager     p       '<pipe-message>less -c<enter>' "pipe message into pager"
66
67 bind pager              [       half-up
68 bind pager              ]       half-down
69
70 macro index,pager       \eS     '<enter-command>set noweed<enter><decode-save>'
71 macro index,pager       \eC     '<enter-command>set noweed<enter><decode-copy>'
72
73 #TODO this is a hack until switch-profile does not readd headers.
74 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"
75 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"
76
77 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"
78
79 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"
80 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"
81 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"
82
83 macro index             <F8>    "<enter-command>unset wait_key<enter><shell-escape>~/.mutt/mutt-notmuch --prompt search<enter><change-folder-readonly>~/.cache/mutt_results<enter>" "search mail (using notmuch)"
84 macro index             <F9>    "<enter-command>unset wait_key<enter><pipe-message>~/.mutt/mutt-notmuch thread<enter><change-folder-readonly>~/.cache/mutt_results<enter><enter-command>set wait_key<enter>" "search and reconstruct owning thread (using notmuch)"
85
86 macro attach    e       '<enter-command>set my_mailcap_path="$mailcap_path"<enter><enter-command>set mailcap_path="~/.mutt/mailcap-edit-wrapper"<enter><view-mailcap><enter-command>set mailcap_path="$my_mailcap_path"<enter>' "edit temporary file of attachment"
87
88 # vim:sw=12:noet:sts=12:ts=12:ft=muttrc