mirror of
https://github.com/gaschz/dotfiles.git
synced 2025-06-06 18:08:31 +02:00
87 lines
3.6 KiB
Plaintext
87 lines
3.6 KiB
Plaintext
# SPDX-FileCopyrightText: 2019-2023 Luke Smith <luke@lukesmith.xyz>
|
|
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
## Credits: https://github.com/LukeSmithxyz/mutt-wizard/blob/master/share/mutt-wizard.muttrc
|
|
|
|
bind index,pager i noop
|
|
bind index,pager g noop
|
|
bind index \Cf noop
|
|
bind index,pager M noop
|
|
bind index,pager C noop
|
|
|
|
## General Vi rebindings
|
|
bind index gg first-entry
|
|
bind index j next-entry
|
|
bind index k previous-entry
|
|
bind attach <return> view-mailcap
|
|
bind attach l view-mailcap
|
|
bind editor <space> noop
|
|
bind index G last-entry
|
|
bind pager,attach h exit
|
|
bind pager j next-line
|
|
bind pager k previous-line
|
|
bind pager l view-attachments
|
|
bind index D delete-message
|
|
bind index U undelete-message
|
|
bind index L limit
|
|
bind index h noop
|
|
bind index l display-message
|
|
bind index,query <space> tag-entry
|
|
#bind browser h goto-parent
|
|
macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
|
|
#bind index,pager H view-raw-message # neomutt only
|
|
bind browser l select-entry
|
|
bind browser gg top-page
|
|
bind browser G bottom-page
|
|
bind pager gg top
|
|
bind pager G bottom
|
|
bind index,pager,browser d half-down
|
|
bind index,pager,browser u half-up
|
|
bind index,pager S sync-mailbox
|
|
bind index,pager R group-reply
|
|
bind index,pager W group-chat-reply
|
|
bind index \031 previous-undeleted # Mouse wheel
|
|
bind index \005 next-undeleted # Mouse wheel
|
|
bind pager \031 previous-line # Mouse wheel
|
|
bind pager \005 next-line # Mouse wheel
|
|
bind editor <Tab> complete-query
|
|
|
|
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
|
|
macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
|
|
macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
|
|
macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
|
|
macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
|
|
macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
|
|
macro index,pager gj "<change-folder>=Junk<enter>" "go to junk"
|
|
macro index,pager Mj ";<save-message>=Junk<enter>" "move mail to junk"
|
|
macro index,pager Cj ";<copy-message>=Junk<enter>" "copy mail to junk"
|
|
macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
|
|
macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash"
|
|
macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash"
|
|
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
|
|
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
|
|
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
|
|
macro index,pager ga "<change-folder>=Archive<enter>" "go to archive"
|
|
macro index,pager Ma ";<save-message>=Archive<enter>" "move mail to archive"
|
|
macro index,pager Ca ";<copy-message>=Archive<enter>" "copy mail to archive"
|
|
|
|
## NotMuch
|
|
## https://man.archlinux.org/man/notmuch-mutt.1.en#INTEGRATION_WITH_MUTT
|
|
macro index <F8> \
|
|
"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
|
|
<shell-escape>notmuch-mutt -r --prompt search<enter>\
|
|
<change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
|
|
<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
|
|
"notmuch: search mail"
|
|
|
|
macro index <F9> \
|
|
"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
|
|
<pipe-message>/usr/bin/notmuch-mutt -r thread<enter> \
|
|
<change-folder-readonly>/home/user/.cache/notmuch/mutt/results<enter> \
|
|
<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
|
|
"notmuch: reconstruct thread"
|
|
|
|
## vim: ft=muttrc
|