index.muttrc 2.1 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. set menu_context = 3 ## Show the lines above/below when scrolling
  18. ### End Index View Options ### }}}
  19. ### Index Key Bindings ### {{{
  20. bind index g noop ## Removes error from next binding
  21. bind index gg first-entry
  22. bind index G noop
  23. bind index GG last-entry
  24. bind index R group-reply
  25. bind index <tab> sync-mailbox
  26. bind index <space> collapse-thread
  27. #bind index,pager,attach ! noop ## Remove shell-escape binding
  28. ## Ctrl-R to mark all as read
  29. macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
  30. ## Sync email
  31. macro index O "<shell-escape>mbsync --all <enter><refresh>" "run mbsync for all accounts"
  32. ## Saner copy/move dialogs
  33. macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
  34. macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
  35. ## Make quick html view macro
  36. bind index,pager V noop ## Unbinds V from version
  37. macro index,pager V "<view-attachments><search>html<enter><view-mailcap><exit>"
  38. ### End Index Key Bindings ### }}}