:compose -T <template name>
Also support a default template. Prepopulates the editor with the contents of some file.
I assume you refer to local template files?
What do you think about drafts/templates synced via IMAP?
agreed. I was just thinking about it when reading this bc I was looking at implementing something like save-draft instead of send/abort in the new compose widget :) and I use synced templates quite a bit myself
Support for signatures (basically default templates) was added here: https://git.sr.ht/~sircmpwn/aerc/commit/e2d5c456dc27f958d79fdf740c7b0852b2af4160.
The ability to compose from a choice of different templates would be awesome to have too though.
I would like to take a stab at implementing this as this would be quite useful for me :D So I have two ways I can think of implementing this: 1) Implement this as part of buildBody in commands/account/compose.go. 2) Implement it as part of the composer in widget/compose.go similar to the signature file. This would make it available for reply and forward too. Any comments on which method to go for?