From e3381adb37fc010bdeaf70264284ad6b94918b40 Mon Sep 17 00:00:00 2001 From: Chris Cowley Date: Mon, 22 Sep 2025 11:41:15 +0200 Subject: [PATCH] Add .config/neomutt/mappings Update .muttrc --- dot_config/neomutt/mappings | 50 +++++++++++++++++++++++++++++++++++++ dot_muttrc | 2 +- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 dot_config/neomutt/mappings diff --git a/dot_config/neomutt/mappings b/dot_config/neomutt/mappings new file mode 100644 index 0000000..1f97356 --- /dev/null +++ b/dot_config/neomutt/mappings @@ -0,0 +1,50 @@ +# vim: filetype=muttrc + +# General rebindings +bind attach view-mailcap +bind attach l view-mailcap +bind editor noop +bind pager c imap-fetch-mail +bind index G last-entry +bind index g noop +bind index gg first-entry +bind pager,attach h exit +bind pager j next-line +bind pager k previous-line +bind pager l view-attachments +bind index D delete-message +bind index U undelete-message +bind index L limit +bind index h noop +bind index l display-message +bind browser h goto-parent +bind browser l select-entry +bind pager,browser gg top-page +bind pager,browser G bottom-page +bind index,pager,browser d half-down +bind index,pager,browser u half-up +bind index,pager R group-reply +bind index \031 previous-undeleted # Mouse wheel +bind index \005 next-undeleted # Mouse wheel +bind pager \031 previous-line # Mouse wheel +bind pager \005 next-line # Mouse wheel +bind editor complete-query + + +# sidebar mappings +bind index,pager \Ck sidebar-prev +bind index,pager \Cj sidebar-next +bind index,pager \Co sidebar-open +bind index,pager \Cp sidebar-prev-new +bind index,pager \Cn sidebar-next-new +bind index,pager B sidebar-toggle-visible + +# global index and pager shortcuts +bind index,pager @ compose-to-sender +bind index,pager D purge-message +bind index sync-mailbox +bind index collapse-thread + +# Email completion bindings +bind editor complete-query +bind editor ^T complete diff --git a/dot_muttrc b/dot_muttrc index 0a04e1c..963523e 100644 --- a/dot_muttrc +++ b/dot_muttrc @@ -1,9 +1,9 @@ # vim: ft=muttrc fdm=marker foldcolumn=2 # +source ~/.config/neomutt/mappings # set from = chris@cowley.tech set real_name = "Chris Cowley" - set edit_headers = yes # allow user to edit message headers set editor = "nvim" # define which editor to use set fast_reply = yes # skip initial prompts when replying