X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/c3a03e540dae7adafed0124b1a83c63436b597d7..refs/heads/master:/mutt/bindings diff --git a/mutt/bindings b/mutt/bindings index f27ac96..649b0f2 100644 --- a/mutt/bindings +++ b/mutt/bindings @@ -1,28 +1,60 @@ # vim: ft=muttrc +bind editor delete-char + # moving around -bind pager J next-line -bind pager K previous-line +bind pager J next-line +bind pager K previous-line bind index,pager j next-undeleted bind index,pager k previous-undeleted +bind index g noop +bind index gg first-entry +bind index G last-entry +bind pager g noop +bind pager gg top +bind pager G bottom + +macro index q "echo 'Press \^C to quit!'" +bind index,pager Q noop +bind index,pager x noop # completion bind editor complete-query -bind editor ^T complete - -# sidebar -bind index,pager \CP sidebar-prev -bind index,pager \CN sidebar-next -bind index,pager \CO sidebar-open +bind editor ^T complete macro index b "toggle sidebar_visible" "Toggle sidebar" macro pager b "toggle sidebar_visible" "Toggle sidebar" +macro pager \Cb "|urlscan" "open urlscan" + +# flag without resolving +bind index F flag-message +bind pager F noop +macro pager F "\ + set my_resolve=\$resolve noresolve\ +\ + set resolve=\$my_resolve" \ +"Flag message without resolving" + +#FIXME: doesn't work because is interactive +# macro index,pager f "\ +# set my_mime_forward=\$mime_forward mime_forward=yes\ +# \ +# set mime_forward=\$my_mime_forward" \ +# "Forward message as attachement" + # Remap bounce-message function to “B” -bind index B bounce-message +bind index,pager B bounce-message +bind index,pager R group-reply + +# limit when syncing +macro index $ "=(=U|=F)" +macro pager $ "=(=U|=F)" + +bind index collapse-thread # open mailcap in attach view bind attach view-mailcap -# add sender to goobook -macro index,pager a "goobook add" "add the sender address to goobook" +macro index,pager 'source $my_config_dir/accounts/mailfence!' +macro index,pager 'source $my_config_dir/accounts/fpp!'