From dab93ebf8bbc2d06e27ad1085d1b9c673d6ba79d Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sun, 23 Oct 2022 09:02:52 +0800 Subject: Update --- mutt/default | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) (limited to 'mutt/default') diff --git a/mutt/default b/mutt/default index c6c0160..e8cc2fc 100644 --- a/mutt/default +++ b/mutt/default @@ -32,9 +32,10 @@ auto_view text/html macro pager h "v/htmlxq" "Open html file" # Vim-style key binding, \c means Ctrl -# ref: https://fancyseeker.github.io/2015/08/19/mutt/#vim风格键位绑定 bind index o sort-reverse bind index O sort-mailbox +bind index E edit-type +bind index,pager N search-opposite bind index sync-mailbox bind index y edit-label bind index x tag-entry @@ -52,8 +53,6 @@ bind index,pager,browser \cd half-down bind index,pager,browser \cu half-up bind index } bottom-page bind pager G bottom -bind pager gg noop -bind pager gg top bind pager j next-line bind pager k previous-line bind pager \cn next-entry @@ -75,6 +74,27 @@ macro pager U "\ :set pipe_decode=\$my_tmp_pipe_decode\n\ :unset my_tmp_pipe_decode\n" #macro pager U "less" "CHECK" +# Quick jump to other mailboxes +bind index,pager g noop +bind generic gg first-entry +bind generic,index G last-entry +bind pager gg top +bind pager G bottom +macro index,pager gi "+INBOX" "Switch to INBOX folder" +macro index,pager gm "+mbox" "Switch to INBOX folder" +macro index,pager gs "+Sent" "Switch to Sent folder" +macro index,pager gd "+DeltaChat" "Switch to Drafts folder" +macro index,pager gD "+Drafts" "Switch to Drafts folder" +macro index,pager gt "+Trash" "Switch to Trash folder" +bind index,pager gv sidebar-toggle-visible +bind generic zt current-top +bind generic zz current-middle +bind generic zb current-bottom +bind index za collapse-thread +bind index zA collapse-all +bind generic,pager \Cy previous-line +bind generic,index,pager \Ce next-line + # Sidebar set mail_check = 120 @@ -96,14 +116,6 @@ color sidebar_divider color8 black color sidebar_flagged red black color sidebar_new green black -bind index,pager g noop -macro index,pager gi "+INBOX" "Switch to INBOX folder" -macro index,pager gm "+mbox" "Switch to INBOX folder" -macro index,pager gs "+Sent" "Switch to Sent folder" -macro index,pager gd "+Drafts" "Switch to Drafts folder" -macro index,pager gt "+Trash" "Switch to Trash folder" -bind index,pager gv sidebar-toggle-visible - # basic colors color normal white black color error red black -- cgit v1.2.3-70-g09d2