2019-04-16 03:31:31 +00:00
|
|
|
###########
|
|
|
|
# GENERAL #
|
|
|
|
###########
|
|
|
|
bind index,pager N search-opposite
|
2020-11-11 03:05:37 +00:00
|
|
|
bind generic,index,pager \Cu half-up
|
|
|
|
bind generic,index,pager \Cd half-down
|
|
|
|
bind generic,index,pager g noop # required to define multikeys binds
|
|
|
|
bind generic,index gg first-entry
|
|
|
|
bind generic,index G last-entry
|
|
|
|
|
2019-04-28 06:38:50 +00:00
|
|
|
bind index,pager <tab> sync-mailbox
|
2020-11-11 03:05:37 +00:00
|
|
|
|
2020-06-19 02:01:14 +00:00
|
|
|
macro index,pager ga "<shell-escape>mailsync<enter>" "Sync all IMAP mailboxes"
|
2019-04-16 03:31:31 +00:00
|
|
|
|
|
|
|
###########
|
|
|
|
# SIDEBAR #
|
|
|
|
###########
|
|
|
|
bind index,pager \Cj sidebar-next # Highlight next
|
|
|
|
bind index,pager \Ck sidebar-prev # Highlight previous
|
|
|
|
bind index,pager \Cl sidebar-open # Open highlighted
|
|
|
|
# For non vim users, up/down/right also work
|
|
|
|
bind index,pager B sidebar-toggle-visible # Toggle sidebar
|
|
|
|
# See also <sidebar-{page-up,page-down,next-new,prev-new}>
|
|
|
|
|
|
|
|
#########
|
|
|
|
# INDEX #
|
|
|
|
#########
|
|
|
|
bind index h noop # display-toggle-weed is rubbish in index view
|
|
|
|
bind index l display-message
|
|
|
|
bind index p recall-message
|
|
|
|
bind index R group-reply
|
|
|
|
bind index <space> collapse-thread
|
2019-04-16 16:46:27 +00:00
|
|
|
bind index p recall-message
|
2019-04-16 03:31:31 +00:00
|
|
|
|
|
|
|
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
|
|
|
|
|
2019-04-16 16:46:27 +00:00
|
|
|
# Saner copy/move/cd dialogs
|
2019-04-16 03:31:31 +00:00
|
|
|
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
|
|
|
|
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
|
2019-04-16 16:46:27 +00:00
|
|
|
macro index c "<change-folder>?<toggle-mailboxes>" "move a message to a mailbox"
|
2019-04-16 03:31:31 +00:00
|
|
|
|
|
|
|
#########
|
|
|
|
# PAGER #
|
|
|
|
#########
|
|
|
|
bind pager h exit
|
|
|
|
bind pager K previous-undeleted
|
|
|
|
bind pager J next-undeleted
|
|
|
|
bind pager k previous-line
|
|
|
|
bind pager j next-line
|
|
|
|
bind pager gg top
|
|
|
|
bind pager G bottom
|
|
|
|
|
|
|
|
bind pager R group-reply
|
|
|
|
bind pager gh display-toggle-weed
|
|
|
|
bind pager ge extract-keys
|
|
|
|
|
2020-06-19 02:01:14 +00:00
|
|
|
macro pager gu "<pipe-message> urlscan <enter>"
|
2022-10-01 10:35:35 +00:00
|
|
|
# Answer emails with a reply address in the body
|
|
|
|
# https://unix.stackexchange.com/a/586010/248368
|
|
|
|
macro pager gr "<pipe-message> ~/.config/neomutt/extract-reply.sh <enter>\
|
|
|
|
<enter-command>source ~/.local/share/neomutt/info.rc <enter>\
|
|
|
|
<mail><enter><enter><enter>"
|
|
|
|
# Use a hook to reset sender and subject just after creating the reply
|
|
|
|
send-hook . 'unmy_hdr To: Subject:'
|
2020-06-19 02:01:14 +00:00
|
|
|
|
2019-04-16 03:31:31 +00:00
|
|
|
##########
|
|
|
|
# ATTACH #
|
|
|
|
##########
|
2020-11-11 03:05:37 +00:00
|
|
|
bind attach l view-text # Force viewing as text
|
2019-04-16 03:31:31 +00:00
|
|
|
|
|
|
|
###########
|
|
|
|
# NOTMUCH #
|
|
|
|
###########
|
|
|
|
# https://a3nm.net/git/myconfig/file/mutt/muttrc.html
|
|
|
|
bind index,pager \Cf vfolder-from-query
|
|
|
|
bind index,pager z entire-thread
|
|
|
|
# Addresses autocompetion using notmuch
|
|
|
|
# https://github.com/neomutt/neomutt/issues/629
|
2021-08-27 18:34:55 +00:00
|
|
|
# https://github.com/neomutt/neomutt/issues/1333
|
|
|
|
set query_command = "echo '' && notmuch address from:%s"
|
2019-04-16 03:31:31 +00:00
|
|
|
bind editor <Tab> complete-query
|
|
|
|
bind editor ^T complete
|
|
|
|
set query_format="%4c %t %-70.70a %-70.70n %?e?(%e)?"
|
|
|
|
|
2019-04-16 16:46:27 +00:00
|
|
|
###########
|
|
|
|
# COMPOSE #
|
|
|
|
###########
|
|
|
|
bind compose p postpone-message
|
2019-12-25 15:59:43 +00:00
|
|
|
bind compose P pgp-menu
|
2019-04-16 16:46:27 +00:00
|
|
|
|
|
|
|
###########
|
|
|
|
# Browser #
|
|
|
|
###########
|
2020-11-11 03:05:37 +00:00
|
|
|
bind browser l descend-directory
|
2019-04-16 16:46:27 +00:00
|
|
|
bind browser h goto-parent
|
|
|
|
|
2019-04-16 03:31:31 +00:00
|
|
|
# vim: syntax=neomuttrc
|