diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-05-04 02:05:44 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-05-04 02:05:44 -0700 |
commit | a0c684fd71145936d816da4a46d664ee107e0967 (patch) | |
tree | c0a7856acc70a54b89800b4f6c48ee1a43f3e921 /home/xyz/.config/neomutt | |
parent | 5fdf2cecb78c8d528f0a75e35bf2874c9112a775 (diff) |
change neomutt hotkeys
Diffstat (limited to 'home/xyz/.config/neomutt')
-rw-r--r-- | home/xyz/.config/neomutt/neomuttrc | 57 |
1 files changed, 49 insertions, 8 deletions
diff --git a/home/xyz/.config/neomutt/neomuttrc b/home/xyz/.config/neomutt/neomuttrc index f696092e..ec7c1bd2 100644 --- a/home/xyz/.config/neomutt/neomuttrc +++ b/home/xyz/.config/neomutt/neomuttrc @@ -11,6 +11,7 @@ # /etc/neomutt # https://neomutt.org/guide/gettingstarted.html # /usr/share/doc/neomutt/optionalfeatures.html +# /usr/share/doc/neomutt/manual.txt # realname and spoolfile deprecated, use real_name and spool_file, also some other variable names, see: # https://github.com/neomutt/neomutt/commit/a5eaeb51b14c484fa52f6f519446253dea5667ca @@ -109,13 +110,53 @@ bind editor <Tab> complete-query # can configure mailcap configs ~/.mailcap to use lynx to auto show html with lynx #auto_view text/html -# navigation settings +# https://blog.flaport.net/configuring-neomutt-for-email.html +# https://github.com/LukeSmithxyz/mutt-wizard/blob/master/share/mutt-wizard.muttrc +# M default to show-log-messages, can be executed by `:exec show-log-messages` +bind index,pager M noop +# C deafult to copy-message +bind index,pager C noop +# g default to group-reply bind index,pager g noop -macro index,pager ga "<change-folder>=Archive<enter>" "go to archive" -macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts" -macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox" -macro index,pager gj "<change-folder>=Junk<enter>" "go to junk" -macro index,pager gs "<change-folder>=Sent<enter>" "go to sent" -macro index,pager gt "<change-folder>=Trash<enter>" "go to trash" -# synchronization settings ['S' to sync] +bind index,pager R group-reply + +macro index,pager \'a "<change-folder>=Archive<enter>" "go to archive" +macro index,pager \'d "<change-folder>=Drafts<enter>" "go to drafts" +macro index,pager \'i "<change-folder>=INBOX<enter>" "go to inbox" +macro index,pager \'j "<change-folder>=Junk<enter>" "go to junk" +macro index,pager \'s "<change-folder>=Sent<enter>" "go to sent" +macro index,pager \'t "<change-folder>=Trash<enter>" "go to trash" +macro index,pager Ca ";<copy-message>=Archive<enter>" "copy mail to archive" +macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts" +macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox" +macro index,pager Cj ";<copy-message>=Junk<enter>" "copy mail to junk" +macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent" +macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash" +macro index,pager Ma ";<save-message>=Archive<enter>" "move mail to archive" +macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts" +macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox" +macro index,pager Mj ";<save-message>=Junk<enter>" "move mail to junk" +macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent" +macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash" + macro index S "<shell-escape>mbsync -a<enter>" "sync email" + +bind index L limit +bind attach l view-mailcap +bind pager l view-attachments +bind index l display-message +bind browser l select-entry +bind pager,attach h exit +bind index h quit +bind index g first-entry +bind index G last-entry +bind browser g top-page +bind browser G bottom-page +bind pager g top +bind pager G bottom + +# N hotkey default functions change bind to E hotkey, because I want to bind N as search-opposite +bind index E toggle-new +bind pager E mark-as-new +bind browser E select-new +bind index,pager,browser N search-opposite |