feat(mu4e): reintroduce A and p view keybindings

When viewing a message, in mu4e < 1.6 'A' gives actions that can be
performed on the attachments, and 'p' / 'P' save attachments. The
functions are removed in 1.6, and their nearest replacements are not
bound. I think it makes sense to actually bind them.
This commit is contained in:
TEC 2021-09-11 21:05:43 +08:00
parent 6b5c34a1db
commit 47be8e292e
No known key found for this signature in database
GPG key ID: 779591AFDB81F06C

View file

@ -181,6 +181,12 @@
(map! :map mu4e-headers-mode-map (map! :map mu4e-headers-mode-map
:vne "l" #'+mu4e/capture-msg-to-agenda) :vne "l" #'+mu4e/capture-msg-to-agenda)
;; Functionality otherwise obscured in mu4e 1.6
(when (version<= "1.6" mu4e-mu-version)
(map! :map mu4e-view-mode-map
:ne "A" #'mu4e-view-mime-part-action
:ne "p" #'mu4e-view-save-attachments))
(map! :localleader (map! :localleader
:map mu4e-compose-mode-map :map mu4e-compose-mode-map
:desc "send and exit" "s" #'message-send-and-exit :desc "send and exit" "s" #'message-send-and-exit