index.muttrc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ##### My (demuredemeanor) muttrc sub index config
  2. # Uses tabstop=4; shiftwidth=4 tabs; foldmarker={{{,}}};
  3. # https://notabug.org/demure/dotfiles
  4. # legacy repo http://github.com/demure/dotfiles
  5. # vim:set syntax=muttrc:
  6. ### Index View Options ### {{{
  7. #set date_format = "%m.%d.%y"
  8. ## Uses Conditional Date patch, to be awesome.
  9. ## today -> "22:09", 7 days -> "Sun 10", this year -> "Jun 10", older -> "2016 JUL 10"
  10. #set index_format = "[%Z] %<[y?%<[7d?%<[d?%[%H:%M ]&%[%a %d]>&%[%b %d]>&%[%Y %b %d]> %-20.20F %s%> (%4c){%X}"
  11. set index_format = "[%Z] %<[y?%<[7d?%<[d?%[%H:%M ]&%[%a %d]>&%[%b %d]>&%[%Y %b %d]> %-20.20F %s%> %g (%4c){%X}"
  12. set sort = threads ## like gmail
  13. set sort_aux = reverse-last-date-received ## like gmail
  14. set uncollapse_jump ## don't collapse on an unread message
  15. set sort_re ## thread based on regex
  16. set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
  17. ### End Index View Options ### }}}
  18. ### Index Key Bindings ### {{{
  19. bind index g noop ## Removes error from next binding
  20. bind index gg first-entry
  21. bind index G noop
  22. bind index GG last-entry
  23. bind index R group-reply
  24. bind index <tab> sync-mailbox
  25. bind index <space> collapse-thread
  26. ## Ctrl-R to mark all as read
  27. macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
  28. ## Sync email
  29. macro index O "<shell-escape>offlineimap<enter>" "run offlineimap to sync all mail"
  30. #macro index o "<shell-escape>offlineimap -qf INBOX<enter>" "run offlineimap to sync all inboxes."
  31. ## Disabled, waiting on https://github.com/neomutt/neomutt/issues/658
  32. #macro index \Co "<shell-escape>offlineimap -a $my_account -f INBOX -u quiet &>/dev/null<enter>" "run offlineimap to sync current inbox."
  33. ## Saner copy/move dialogs
  34. macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
  35. macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
  36. ## Make quick html view macro
  37. bind index,pager V noop ## Unbinds V from version
  38. macro index,pager V "<view-attachments><search>html<enter><view-mailcap><exit>"
  39. ### End Index Key Bindings ### }}}