mirror of https://github.com/djcb/mu.git
mu4e: simplify what "e" does in mu4e-view mode
The default was to use e to save one attachment or C-u e to save multiple. This simplifies it so that e simply offers to save one or many attachments.
This commit is contained in:
parent
cb0025b352
commit
7f16b7422d
|
@ -1228,14 +1228,7 @@ attachments, but as this is the default, you may not need it."
|
||||||
(dolist (num attachnums)
|
(dolist (num attachnums)
|
||||||
(mu4e-view-save-attachment-single msg num)))))
|
(mu4e-view-save-attachment-single msg num)))))
|
||||||
|
|
||||||
(defun mu4e-view-save-attachment (&optional multi)
|
(defalias #'mu4e-view-save-attachment #'mu4e-view-save-attachment-multi)
|
||||||
"Offer to save attachment(s).
|
|
||||||
If MULTI (prefix-argument) is nil, save a single one, otherwise,
|
|
||||||
offer to save a range of attachments."
|
|
||||||
(interactive "P")
|
|
||||||
(if multi
|
|
||||||
(mu4e-view-save-attachment-multi)
|
|
||||||
(mu4e-view-save-attachment-single)))
|
|
||||||
|
|
||||||
(defun mu4e-view-open-attachment (&optional msg attnum)
|
(defun mu4e-view-open-attachment (&optional msg attnum)
|
||||||
"Open attachment number ATTNUM from MSG.
|
"Open attachment number ATTNUM from MSG.
|
||||||
|
|
|
@ -1220,9 +1220,8 @@ C-u f fetches multiple URLs
|
||||||
k save the numbered URL in the kill-ring.
|
k save the numbered URL in the kill-ring.
|
||||||
C-u k saves multiple URLs
|
C-u k saves multiple URLs
|
||||||
|
|
||||||
e extract (save) attachment (asks for number)
|
e extract (save) one or more attachments (asks for numbers)
|
||||||
(or: <mouse-2> or S-RET with point on attachment)
|
(or: <mouse-2> or S-RET with point on attachment)
|
||||||
C-u e extracts multiple attachments
|
|
||||||
o open attachment (asks for number)
|
o open attachment (asks for number)
|
||||||
(or: <mouse-1> or M-RET with point on attachment)
|
(or: <mouse-1> or M-RET with point on attachment)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue