2
0
mirror of https://github.com/webgefrickel/dotfiles synced 2024-11-09 13:10:27 +00:00
steffen-dotfiles/.config/neomutt/bindings

44 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

# some sane vim-like keybindings
bind index,pager k previous-entry
bind index,pager j next-entry
bind index,pager g noop
bind index,pager \Cu half-up
bind index,pager \Cd half-down
2019-03-27 15:03:38 +00:00
bind pager gg top
bind index gg first-entry
2019-03-27 15:03:38 +00:00
bind pager G bottom
bind index G last-entry
2019-03-27 15:03:38 +00:00
# Sidebar Navigation
bind index,pager <down> sidebar-next
bind index,pager <up> sidebar-prev
bind index,pager <right> sidebar-open
# index and pager shortcuts
bind index,pager @ compose-to-sender
bind index,pager R group-reply
bind index <tab> sync-mailbox
bind index <space> collapse-thread
2019-03-27 15:03:38 +00:00
# Save all attachments
macro index,pager S "<pipe-message>ripmime -i - -d ~/Downloads && rm ~/Downloads/textfile*" "Save all non-text attachments using ripmime"
# opening urls with urlscan
macro index,pager \cb "<pipe-message>urlscan<enter>" "call urlscan to extract URLs out of a message"
# Sync all email
2024-07-11 13:32:30 +00:00
macro index,pager O "<shell-escape>mbsync -a && mu index<enter>" "run mbsync to sync all mail"
2017-03-19 13:20:44 +00:00
2022-09-10 15:21:29 +00:00
macro pager X "<enter-command>set pipe_decode=yes<enter>v|grep -v '^>' | speedread<enter><enter-command>unset pipe_decode<enter>q" "speedread"
2017-03-19 13:20:44 +00:00
# View attachments properly.
bind attach <space> view-mailcap
2017-03-19 13:20:44 +00:00
2019-03-27 15:03:38 +00:00
# Drafts
2017-03-19 13:20:44 +00:00
bind compose P postpone-message
bind compose <space> view-attach
2017-03-19 13:20:44 +00:00
bind index p recall-message
# finding stuff
bind editor <tab> complete-query
2024-07-19 14:30:00 +00:00
macro index F "<shell-escape>mu find --clearlinks --format=links --linksdir $HOME/.mu/results " "mu find"
2017-03-19 13:20:44 +00:00
macro index \cf "<change-folder-readonly>~/.mu/results<enter>" "mu find results"