X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/c25acc9ef0b9ebaa5cdc1f4389af445a263f4fc8..f1e0df895fd9f37f90c76039bb24fa38dbbcb1a9:/.mutt/keybindings?ds=inline diff --git a/.mutt/keybindings b/.mutt/keybindings index cef50eb..109fff6 100644 --- a/.mutt/keybindings +++ b/.mutt/keybindings @@ -1,64 +1,83 @@ +macro generic,pager " zcat /usr/share/doc/mutt/manual.txt.gz | sensible-pager" "show Mutt documentation" + bind index,pager | pipe-message bind index,pager ! flag-message -#macro index,pager \ep "muttprint -p TO_FILE:$tmpdir/muttprint.ps -D && gv $tmpdir/muttprint.ps && rm $tmpdir/muttprint.ps" bind index,pager \eP print-message bind index,pager previous-entry bind index,pager next-entry -bind index,pager p previous-undeleted -bind index,pager n next-undeleted -bind index,pager \eS decode-save bind index,pager \eU undelete-subthread bind index,pager \eD delete-subthread -#bind pager previous-line -#bind pager next-line -#bind index,pager previous-undeleted -#bind index,pager next-undeleted + +bind index 0 first-entry +bind index G last-entry +bind pager 0 top +bind pager G bottom bind pager,index previous-unread -#macro pager,index p "" "do nothing" +macro index p "" "do nothing" -##bind index p previous-undeleted -##bind index n next-undeleted +bind index h noop -##macro index L "=store" -macro index S "=store" "save messages to store" -macro pager S "=store" "save message to store" +macro index \es " set my_weed=\$weed set my_resolve=\$resolve set noweed noresolve^n set weed=\$my_weed set resolve=\$my_resolve" "decode message to current folder" +macro pager \es " set my_weed=\$weed set my_resolve=\$resolve set noweed noresolve^n set weed=\$my_weed set resolve=\$my_resolve" "decode message to current folder" +macro index \eS "<" "save messages to store" +macro pager \eS "<" "save message to store" +macro index S " set my_weed=\$weed set my_resolve=\$resolve set noweed noresolve< set weed=\$my_weed set resolve=\$my_resolve" "decode message to $record folder" +macro pager S " set my_weed=\$weed set my_resolve=\$resolve set noweed noresolve< set weed=\$my_weed set resolve=\$my_resolve" "decode message to $record folder" -macro index \er '=resubmit' "resubmit messages" -macro pager \er '=resubmit' "resubmit message" +macro index,pager E ' source "$my_confdir/supersede-header X-Tickle get-timestamp|"=resubmit' "schedule messages with tickler" +macro index,pager \ex ' source "$my_confdir/remove-header X-Postponed|"' "release postponed messages" -macro index,pager E ':set my_editor="$editor":set editor="$my_confdir/add-tickle-stamp"=resubmit:set editor="$my_editor"' "schedule message with tickler" +macro index,pager \e, "<" "go to $record folder" +macro index,pager \e. ">" "go to $spool folder" +macro index,pager \e1 "!" "go to inbox folder" -macro index,pager \es "=store" "go to store folder" -macro index,pager \ed "=debian" "go to debian folder" -macro index,pager \ei "=inbox" "go to inbox folder" -macro index,pager \eu "=ul" "go to ul folder" -macro index,pager \ea "=admin" "go to admin folder" +bind index \eT tag-thread +bind index,pager \eK mail-key -macro index,pager \eR "source $my_confdir/muttrc" "reload muttrc" -macro compose \eR "source $my_confdir/muttrc" "reload muttrc" +macro index,pager \eR " source $my_confdir/muttrc" "reload muttrc" +macro compose \eR " source $my_confdir/muttrc" "reload muttrc" macro index X "=retrain/spam" "retrain message as spam" macro pager X "=retrain/spam" "retrain message as spam" macro index Z "=retrain/ham" "retrain message as ham" macro pager Z "=retrain/ham" "retrain message as ham" -macro index,pager \Cb 'set my_pipe_decode="$pipe_decode"set pipe_decode/usr/bin/urlviewset pipe_decode="$my_pipe_decode"' "invoke urlview" +macro index,pager,attach,compose \Cb " set my_pipe_decode=\$pipe_decode set pipe_decode/usr/bin/urlscan set pipe_decode=\$my_pipe_decode" "invoke urlscan" macro compose Y '' "send message without storing" -macro compose \Cy 'cY' "send message without storing or signing" +macro compose \Cy 'c' "send message without signing" +macro compose \CY 'cY' "send message without storing signing" +macro compose N ' unset fcc_attach' "do not fcc-store attachment" + +macro index,pager F '~L ' "search for correspondents" +macro index,pager \ef '~(~L )' "search for correspondents (show complete threads)" -macro index F '~L ' "search for correspondents" +bind index,pager \en search-opposite -macro index \Co 'imaps://logcheck-todo%40madduck.net:logcheck@imap.madduck.net' 'save message to logcheck-todo' -macro pager \Co 'imaps://logcheck-todo%40madduck.net:logcheck@imap.madduck.net' 'save message to logcheck-todo' -macro index,pager \eo 'imaps://logcheck-todo%40madduck.net:logcheck@imap.madduck.net' 'go to logcheck todo folder' +macro pager p 'less -c' "pipe message into pager" + +bind pager [ half-up +bind pager ] half-down #TODO this is a hack until switch-profile does not readd headers. -macro compose e 'set my_editor="$editor"set editor=sensible-editorset editor="$my_editor"' "invoke normal editor to edit message" -macro index,pager e 'set my_editor="$editor"set editor=sensible-editorset editor="$my_editor"' "invoke normal editor to edit message" +macro compose e " set my_editor=\$editor set editor=sensible-editor set editor=\$my_editor" "invoke normal editor to edit message" +macro index,pager e " set my_editor=\$editor set editor=sensible-editor set editor=\$my_editor" "invoke normal editor to edit message" + +macro index \ej " set my_editor=\$editor source $my_confdir/batch-subject-editor| set editor=\$my_editor" "change message subject" + +macro index,pager \er " set my_editor=\$editor set editor=\"~/.mutt/reuse-message \$my_editor\" set editor=\$my_editor" "invoke normal editor to edit message" +macro index,pager \eg " set my_editor=\$editor set editor=\"~/.mutt/reuse-message \$my_editor\" set editor=\$my_editor" "invoke normal editor to edit message" +macro index,pager \el " set my_editor=\$editor set editor=\"~/.mutt/reuse-message \$my_editor\" set editor=\$my_editor" "invoke normal editor to edit message" + +# override F6 from notmuch-mutt +macro index "" "do nothing" + +macro attach e " set my_mailcap_path=\$mailcap_path set mailcap_path=~/.mutt/mailcap.editing set mailcap_path=\$my_mailcap_path" "edit temporary file of attachment" + +macro index,pager M " set my_weed=\$weed set noweedformail -czx X-RSS-URL: | xargs sensible-browser set weed=\$my_weed" -macro index \ej 'set my_editor="$editor"source "$my_confdir/batch-subject-editor|"set editor="$my_editor"' "change message subject" +macro index,pager " set my_pipe_decode=\$pipe_decode unset pipe_decode~/.mutt/viewmailattachments set pipe_decode=\$my_pipe_decode" "view attachments in browser" # vim:sw=12:noet:sts=12:ts=12:ft=muttrc