alot icon indicating copy to clipboard operation
alot copied to clipboard

commands/thread/open-attachment: add command

Open pacien opened this issue 5 years ago • 4 comments

This allows the user to open an attachment file with a program of their choice.

GitHub: closes #1494

pacien avatar May 09 '20 14:05 pacien

I'd rather not call this command open because it may be confused with unfolding a message. How's view ? open-attachment ?

pazz avatar May 09 '20 16:05 pazz

Amended to rename the command to "open-attachment".

pacien avatar May 09 '20 16:05 pacien

I feel like I have implemented a very similat logic in alot.commands.globals.EditCommand. Perhaps we should rather subclass that to recycle code?

pazz avatar May 10 '20 19:05 pazz

The EditCommand and OpenAttachmentCommand implementations do not seem to share much in common: the way the file path is substituted in the command differs with mailcap templates.

pacien avatar May 10 '20 21:05 pacien