office: Add more vim-like mappings to neomutt

Added page up/down movement with the C-u/d/b/f key combinations, as well
as message and thread removal with dd (message), dT (thread) and dt
(sub-thread) chords.
Replies have been changed to rr (reply all) or ro (reply one).

The 'new' flag can be toggled by s (for seen) as previously, though now
other flags can be toggled with S and all messages can be marked as seen
with C-s.

Other things are mostly the same, though threads can be collapsed with
za (one) or zA (all) and moved between with gt/gT.
This commit is contained in:
Marty Oehme 2022-12-13 09:53:46 +01:00
parent 30e9d09ee4
commit 30030782e1
Signed by: Marty
GPG Key ID: 73BA40D5AFAF49C9
1 changed files with 27 additions and 7 deletions

View File

@ -5,11 +5,29 @@ bind index,pager g noop # don't send group-replies with g
bind index gg first-entry
bind index G last-entry
bind index <space> collapse-thread
bind index,pager \CF next-page
bind index,pager \CB previous-page
bind index,pager N search-opposite # vim-like search
bind index s toggle-new
macro index \CS "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
# view manipulation
bind attach,browser,index,pager \CF next-page
bind attach,browser,index,pager \CB previous-page
bind attach,browser,index,pager \Cu half-up
bind attach,browser,index,pager \Cd half-down
bind browser,index,pager \Ce next-line
bind browser,index,pager \Cy previous-line
bind index s toggle-new
bind index S set-flag
macro index \CS "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
bind index,pager w display-toggle-weed
# Thread manipulation
bind pager d noop
bind index,pager dd delete-message
bind index,pager dT delete-thread
bind index,pager dt delete-subthread
bind pager,index gt next-thread
bind pager,index gT previous-thread
bind pager,index za collapse-thread
bind pager,index zA collapse-all
# Email completion bindings
bind editor <Tab> complete-query
@ -33,7 +51,7 @@ bind index,pager <up> sidebar-prev
bind index,pager <right> sidebar-open
# search navigation
macro index a "<limit>all\n" "show all messages (undo limit)"
# notmuch search navigation
bind browser,index,pager N search-opposite # vim-like search
bind index \\ vfolder-from-query # notmuch search
# pager navigation
bind pager,attach h exit
@ -48,7 +66,9 @@ bind compose p postpone-message
macro compose M "F pandoc -s -f markdown -t html \ny^T^Utext/html; charset=UTF-8\n" "Convert from MD to HTML"
# since we unbound the original g
bind index,pager R group-reply
bind index,pager r noop # to avoid accidentally sending replies
bind index,pager rr group-reply
bind index,pager ro reply
# open urls found in the e-mail
macro index,pager \CU "|urlview<enter>" "call urlview to open links"