diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2022-10-23 09:02:52 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2022-10-23 09:02:52 +0800 |
commit | dab93ebf8bbc2d06e27ad1085d1b9c673d6ba79d (patch) | |
tree | a8df4254390f9a1c2e39abb09488e354809b974d /mutt | |
parent | 30520f11f4a82331c000b82dd5cc7b3d88624375 (diff) |
Update
Diffstat (limited to 'mutt')
-rw-r--r-- | mutt/default | 34 | ||||
-rw-r--r-- | mutt/muttrc.topo | 2 |
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 | |||
32 | macro pager h "v/html<return>xq<return>" "Open html file" | 32 | macro 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风格键位绑定 | ||
36 | bind index o sort-reverse | 35 | bind index o sort-reverse |
37 | bind index O sort-mailbox | 36 | bind index O sort-mailbox |
37 | bind index E edit-type | ||
38 | bind index,pager N search-opposite | ||
38 | bind index <Return> sync-mailbox | 39 | bind index <Return> sync-mailbox |
39 | bind index y edit-label | 40 | bind index y edit-label |
40 | bind index x tag-entry | 41 | bind index x tag-entry |
@@ -52,8 +53,6 @@ bind index,pager,browser \cd half-down | |||
52 | bind index,pager,browser \cu half-up | 53 | bind index,pager,browser \cu half-up |
53 | bind index } bottom-page | 54 | bind index } bottom-page |
54 | bind pager G bottom | 55 | bind pager G bottom |
55 | bind pager gg noop | ||
56 | bind pager gg top | ||
57 | bind pager j next-line | 56 | bind pager j next-line |
58 | bind pager k previous-line | 57 | bind pager k previous-line |
59 | bind pager \cn next-entry | 58 | bind 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 | ||
78 | bind index,pager g noop | ||
79 | bind generic gg first-entry | ||
80 | bind generic,index G last-entry | ||
81 | bind pager gg top | ||
82 | bind pager G bottom | ||
83 | macro index,pager gi "<change-folder>+INBOX<Return>" "Switch to INBOX folder" | ||
84 | macro index,pager gm "<change-folder>+mbox<Return>" "Switch to INBOX folder" | ||
85 | macro index,pager gs "<change-folder>+Sent<Return>" "Switch to Sent folder" | ||
86 | macro index,pager gd "<change-folder>+DeltaChat<Return>" "Switch to Drafts folder" | ||
87 | macro index,pager gD "<change-folder>+Drafts<Return>" "Switch to Drafts folder" | ||
88 | macro index,pager gt "<change-folder>+Trash<Return>" "Switch to Trash folder" | ||
89 | bind index,pager gv sidebar-toggle-visible | ||
90 | bind generic zt current-top | ||
91 | bind generic zz current-middle | ||
92 | bind generic zb current-bottom | ||
93 | bind index za collapse-thread | ||
94 | bind index zA collapse-all | ||
95 | bind generic,pager \Cy previous-line | ||
96 | bind generic,index,pager \Ce next-line | ||
97 | |||
78 | 98 | ||
79 | # Sidebar | 99 | # Sidebar |
80 | set mail_check = 120 | 100 | set mail_check = 120 |
@@ -96,14 +116,6 @@ color sidebar_divider color8 black | |||
96 | color sidebar_flagged red black | 116 | color sidebar_flagged red black |
97 | color sidebar_new green black | 117 | color sidebar_new green black |
98 | 118 | ||
99 | bind index,pager g noop | ||
100 | macro index,pager gi "<change-folder>+INBOX<Return>" "Switch to INBOX folder" | ||
101 | macro index,pager gm "<change-folder>+mbox<Return>" "Switch to INBOX folder" | ||
102 | macro index,pager gs "<change-folder>+Sent<Return>" "Switch to Sent folder" | ||
103 | macro index,pager gd "<change-folder>+Drafts<Return>" "Switch to Drafts folder" | ||
104 | macro index,pager gt "<change-folder>+Trash<Return>" "Switch to Trash folder" | ||
105 | bind index,pager gv sidebar-toggle-visible | ||
106 | |||
107 | # basic colors | 119 | # basic colors |
108 | color normal white black | 120 | color normal white black |
109 | color error red black | 121 | color 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 |
31 | unmailboxes * | 31 | unmailboxes * |
32 | mailboxes =INBOX =mbox "+------ Watch ------" =hometeach =pay =osm =keep "+---- Processed ----" =Sent =Trash =Drafts =test =spam | 32 | mailboxes =INBOX =mbox =DeltaChat "+------ Watch ------" =hometeach =pay =osm =keep "+---- Processed ----" =Sent =Trash =Drafts =test =spam |
33 | 33 | ||
34 | # Keybinding | 34 | # Keybinding |
35 | macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.topo<enter><change-folder>!<enter>' | 35 | macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc.topo<enter><change-folder>!<enter>' |