Add a way of choosing destination file for attachments #2730
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When using
mu4e-view-save-attachments
, only the destination directory can beset. Therefore if the attachment is
Very Inconvenient filename-1234.pdf
, itwill be saved in a file with the same name.
At first I thought about creating a new custom variable to tweak the behavior of
mu4e-view-save-attachments
--which explains this poor branch name. But Ithought adding a dedicated command makes more sense. One command that does
everything is more likely to become a big piece of inedible code, especially if
I am the guy who writes it. So here is my attempt to implement a facility for
choosing the destination file of an attachment.
I know that this kind of feature requires being properly documented in the
manual, and that binding it to a key would be nice--I think of
o
for "one" or"output". I am totally willing to do it, but I would like to get some feedback
on the idea first.