Open pacien opened 4 years ago
I'd rather not call this command open
because it may be confused with unfolding a message. How's view
? open-attachment
?
Amended to rename the command to "open-attachment".
I feel like I have implemented a very similat logic in alot.commands.globals.EditCommand
.
Perhaps we should rather subclass that to recycle code?
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.
This allows the user to open an attachment file with a program of their choice.
GitHub: closes #1494