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:
parent
30e9d09ee4
commit
30030782e1
1 changed files with 27 additions and 7 deletions
|
@ -5,11 +5,29 @@ bind index,pager g noop # don't send group-replies with g
|
||||||
bind index gg first-entry
|
bind index gg first-entry
|
||||||
bind index G last-entry
|
bind index G last-entry
|
||||||
bind index <space> collapse-thread
|
bind index <space> collapse-thread
|
||||||
bind index,pager \CF next-page
|
|
||||||
bind index,pager \CB previous-page
|
# view manipulation
|
||||||
bind index,pager N search-opposite # vim-like search
|
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 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"
|
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
|
# Email completion bindings
|
||||||
bind editor <Tab> complete-query
|
bind editor <Tab> complete-query
|
||||||
|
@ -33,7 +51,7 @@ bind index,pager <up> sidebar-prev
|
||||||
bind index,pager <right> sidebar-open
|
bind index,pager <right> sidebar-open
|
||||||
# search navigation
|
# search navigation
|
||||||
macro index a "<limit>all\n" "show all messages (undo limit)"
|
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
|
bind index \\ vfolder-from-query # notmuch search
|
||||||
# pager navigation
|
# pager navigation
|
||||||
bind pager,attach h exit
|
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"
|
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
|
# 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
|
# open urls found in the e-mail
|
||||||
macro index,pager \CU "|urlview<enter>" "call urlview to open links"
|
macro index,pager \CU "|urlview<enter>" "call urlview to open links"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue