Hmm, I guess I would just write a macro like this:
[...]
macro attach s "<save-entry>~/Downloads/"
I guess this is better, so as not to overwrite the filename:
macro attach s "<save-entry><Home>~/Downloads/<End>"
On 2021-09-02, cjsmall wrote:
Alternately, maybe there is a way to make a single key alias for "~/Downloads" just as "=" or '+' substitutes for the folder string.
Not a big problem, but I wanted to check whether I was missing something obvious. Thanks.
Hmm, I guess I would just write a macro like this:
macro attach s "<save-entry>~/Downloads/"
Does that solve it?
Alternately, maybe there is a way to make a single key alias for "~/Downloads" just as "=" or '+' substitutes for the folder string.
Not a big problem, but I wanted to check whether I was missing something obvious. Thanks.
On Thursday, September 2, 2021 at 7:48:25 PM UTC-7, Tavis Ormandy wrote:
Hmm, I guess I would just write a macro like this:I guess this is better, so as not to overwrite the filename:
[...]
macro attach s "<save-entry>~/Downloads/"
macro attach s "<save-entry><Home>~/Downloads/<End>"
Tavis: Thanks for the simple solution. It works! Regarding the
<Home> and <End>, I see that they cause the attachment name to be
inserted on the save line, but I really don't understand why or how.
If you can enlighten me as to what is happening here, I'd appreciate
it. Regards.
They don't. Mutt inserts the attachment name automatically. <Home>
simply moves the insertion cursor to the start of the name, then "~/Downloads/" is entered as if you had typed those characters, then
<End> moves the insertion cursor back to the very end of the filename
field.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 292 |
Nodes: | 16 (2 / 14) |
Uptime: | 191:44:39 |
Calls: | 6,616 |
Files: | 12,166 |
Messages: | 5,315,212 |