X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/843e189b8e12d8e580b9d999baa5245722f9db6c..ae293388fd85608622e4b54ec68efeffa34623e6:/.mutt/keybindings?ds=inline diff --git a/.mutt/keybindings b/.mutt/keybindings index a23c46f..d25af5c 100644 --- a/.mutt/keybindings +++ b/.mutt/keybindings @@ -1,3 +1,5 @@ +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 bind index,pager \eP print-message @@ -18,14 +20,11 @@ macro index p "" "do nothing" 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 \Cl '=resubmit' "resubmit messages" -macro pager \Cl '=resubmit' "resubmit message" +macro index S "=store" "save messages to store" +macro pager S "=store" "save message to store" -macro index,pager E 'source "$my_confdir/supersede-header X-Tickle get-timestamp|"push S' "schedule messages with tickler" -macro index,pager \ex 'source "$my_confdir/remove-header X-Postponed|"' "release postponed messages" +macro index,pager E ' source "$my_confdir/supersede-header X-Tickle get-timestamp|" push S' "schedule messages with tickler" +macro index,pager \ex ' source "$my_confdir/remove-header X-Postponed|"' "release postponed messages" macro index,pager \es "=store" "go to store folder" macro index,pager \ec "=debian/debconf" "go to debconf folder" @@ -39,27 +38,24 @@ macro index,pager \et "=toni" "go to toni 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 \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 '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 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 ~ '~' "shortcut to pattern search" -macro pager ~ '~' "shortcut to pattern search" - bind index,pager \en search-opposite macro pager p 'less -c' "pipe message into pager" @@ -67,24 +63,25 @@ macro pager p 'less -c' "pipe message into pager" bind pager [ half-up bind pager ] half-down -macro index,pager \eS 'set noweed' -macro index,pager \eC 'set noweed' +macro index,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" #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 \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" +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 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,pager M 'set my_weed="$weed"set noweedformail -czx X-RSS-URL: | xargs sensible-browserset weed="$my_weed"' +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