aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2022-10-23 09:02:52 +0800
committerHsieh Chin Fan <pham@topo.tw>2022-10-23 09:02:52 +0800
commitdab93ebf8bbc2d06e27ad1085d1b9c673d6ba79d (patch)
treea8df4254390f9a1c2e39abb09488e354809b974d
parent30520f11f4a82331c000b82dd5cc7b3d88624375 (diff)
Update
-rw-r--r--mutt/default34
-rw-r--r--mutt/muttrc.topo2
2 files changed, 24 insertions, 12 deletions
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
32macro pager h "v/html<return>xq<return>" "Open html file" 32macro pager h "v/html<return>xq<return>" "Open html file"
33 33
34# Vim-style key binding, \c means Ctrl 34# Vim-style key binding, \c means Ctrl
35# ref: https://fancyseeker.github.io/2015/08/19/mutt/#vim风格键位绑定
36bind index o sort-reverse 35bind index o sort-reverse
37bind index O sort-mailbox 36bind index O sort-mailbox
37bind index E edit-type
38bind index,pager N search-opposite
38bind index <Return> sync-mailbox 39bind index <Return> sync-mailbox
39bind index y edit-label 40bind index y edit-label
40bind index x tag-entry 41bind index x tag-entry
@@ -52,8 +53,6 @@ bind index,pager,browser \cd half-down
52bind index,pager,browser \cu half-up 53bind index,pager,browser \cu half-up
53bind index } bottom-page 54bind index } bottom-page
54bind pager G bottom 55bind pager G bottom
55bind pager gg noop
56bind pager gg top
57bind pager j next-line 56bind pager j next-line
58bind pager k previous-line 57bind pager k previous-line
59bind pager \cn next-entry 58bind pager \cn next-entry
@@ -75,6 +74,27 @@ macro pager U "\
75:set pipe_decode=\$my_tmp_pipe_decode\n\ 74:set pipe_decode=\$my_tmp_pipe_decode\n\
76:unset my_tmp_pipe_decode\n" 75:unset my_tmp_pipe_decode\n"
77#macro pager U "<pipe-message>less<enter>" "CHECK" 76#macro pager U "<pipe-message>less<enter>" "CHECK"
77# Quick jump to other mailboxes
78bind index,pager g noop
79bind generic gg first-entry
80bind generic,index G last-entry
81bind pager gg top
82bind pager G bottom
83macro index,pager gi "<change-folder>+INBOX<Return>" "Switch to INBOX folder"
84macro index,pager gm "<change-folder>+mbox<Return>" "Switch to INBOX folder"
85macro index,pager gs "<change-folder>+Sent<Return>" "Switch to Sent folder"
86macro index,pager gd "<change-folder>+DeltaChat<Return>" "Switch to Drafts folder"
87macro index,pager gD "<change-folder>+Drafts<Return>" "Switch to Drafts folder"
88macro index,pager gt "<change-folder>+Trash<Return>" "Switch to Trash folder"
89bind index,pager gv sidebar-toggle-visible
90bind generic zt current-top
91bind generic zz current-middle
92bind generic zb current-bottom
93bind index za collapse-thread
94bind index zA collapse-all
95bind generic,pager \Cy previous-line
96bind generic,index,pager \Ce next-line
97
78 98
79# Sidebar 99# Sidebar
80set mail_check = 120 100set mail_check = 120
@@ -96,14 +116,6 @@ color sidebar_divider color8 black
96color sidebar_flagged red black 116color sidebar_flagged red black
97color sidebar_new green black 117color sidebar_new green black
98 118
99bind index,pager g noop
100macro index,pager gi "<change-folder>+INBOX<Return>" "Switch to INBOX folder"
101macro index,pager gm "<change-folder>+mbox<Return>" "Switch to INBOX folder"
102macro index,pager gs "<change-folder>+Sent<Return>" "Switch to Sent folder"
103macro index,pager gd "<change-folder>+Drafts<Return>" "Switch to Drafts folder"
104macro index,pager gt "<change-folder>+Trash<Return>" "Switch to Trash folder"
105bind index,pager gv sidebar-toggle-visible
106
107# basic colors 119# basic colors
108color normal white black 120color normal white black
109color error red black 121color error red black
diff --git a/mutt/muttrc.topo b/mutt/muttrc.topo
index 4c40846..d5f0b08 100644
--- a/mutt/muttrc.topo
+++ b/mutt/muttrc.topo
@@ -29,7 +29,7 @@ set postponed = "+Drafts"
29 29
30# Sidebar 30# Sidebar
31unmailboxes * 31unmailboxes *
32mailboxes =INBOX =mbox "+------ Watch ------" =hometeach =pay =osm =keep "+---- Processed ----" =Sent =Trash =Drafts =test =spam 32mailboxes =INBOX =mbox =DeltaChat "+------ Watch ------" =hometeach =pay =osm =keep "+---- Processed ----" =Sent =Trash =Drafts =test =spam
33 33
34# Keybinding 34# Keybinding
35macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.topo<enter><change-folder>!<enter>' 35macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.topo<enter><change-folder>!<enter>'