From a0c684fd71145936d816da4a46d664ee107e0967 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sat, 4 May 2024 02:05:44 -0700 Subject: change neomutt hotkeys --- home/xyz/.config/neomutt/neomuttrc | 57 ++++++++++++++++++++++++++++++++------ 1 file changed, 49 insertions(+), 8 deletions(-) (limited to 'home') 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 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 "=Archive" "go to archive" -macro index,pager gd "=Drafts" "go to drafts" -macro index,pager gi "=INBOX" "go to inbox" -macro index,pager gj "=Junk" "go to junk" -macro index,pager gs "=Sent" "go to sent" -macro index,pager gt "=Trash" "go to trash" -# synchronization settings ['S' to sync] +bind index,pager R group-reply + +macro index,pager \'a "=Archive" "go to archive" +macro index,pager \'d "=Drafts" "go to drafts" +macro index,pager \'i "=INBOX" "go to inbox" +macro index,pager \'j "=Junk" "go to junk" +macro index,pager \'s "=Sent" "go to sent" +macro index,pager \'t "=Trash" "go to trash" +macro index,pager Ca ";=Archive" "copy mail to archive" +macro index,pager Cd ";=Drafts" "copy mail to drafts" +macro index,pager Ci ";=INBOX" "copy mail to inbox" +macro index,pager Cj ";=Junk" "copy mail to junk" +macro index,pager Cs ";=Sent" "copy mail to sent" +macro index,pager Ct ";=Trash" "copy mail to trash" +macro index,pager Ma ";=Archive" "move mail to archive" +macro index,pager Md ";=Drafts" "move mail to drafts" +macro index,pager Mi ";=INBOX" "move mail to inbox" +macro index,pager Mj ";=Junk" "move mail to junk" +macro index,pager Ms ";=Sent" "move mail to sent" +macro index,pager Mt ";=Trash" "move mail to trash" + macro index S "mbsync -a" "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 -- cgit v1.2.3-70-g09d2