mirror of
https://github.com/webgefrickel/dotfiles
synced 2024-11-09 13:10:27 +00:00
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
# 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
|
|
bind pager gg top
|
|
bind index gg first-entry
|
|
bind pager G bottom
|
|
bind index G last-entry
|
|
|
|
# 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
|
|
# 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
|
|
macro index,pager O "<shell-escape>mbsync -a && mu index<enter>" "run mbsync to sync all mail"
|
|
|
|
macro pager X "<enter-command>set pipe_decode=yes<enter>v|grep -v '^>' | speedread<enter><enter-command>unset pipe_decode<enter>q" "speedread"
|
|
|
|
# View attachments properly.
|
|
bind attach <space> view-mailcap
|
|
|
|
# Drafts
|
|
bind compose P postpone-message
|
|
bind compose <space> view-attach
|
|
bind index p recall-message
|
|
|
|
# finding stuff
|
|
bind editor <tab> complete-query
|
|
macro index F "<shell-escape>mu find --clearlinks --format=links --linksdir $HOME/.mu/results " "mu find"
|
|
macro index \cf "<change-folder-readonly>~/.mu/results<enter>" "mu find results"
|
|
|