diff options
author | Robin Jarry <robin@jarry.cc> | 2023-03-12 10:55:47 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-03-13 23:35:48 +0100 |
commit | 49f58adda429c54225d79d13bfad7a054ae29db2 (patch) | |
tree | 316fb8eaa0b4c6dd32f610847db58473730ea8d4 /config/aerc.conf | |
parent | 6ea08564041640a4d3552a9934e4317b1086fa9b (diff) | |
download | aerc-49f58adda429c54225d79d13bfad7a054ae29db2.tar.gz |
openers: add mime type handling for open-link
Provide a way to configure link openers. Based on the URL mime type:
x-scheme-handler/$scheme.
Signed-off-by: Kirill Chibisov <contact@kchibisov.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'config/aerc.conf')
-rw-r--r-- | config/aerc.conf | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/aerc.conf b/config/aerc.conf index cb6e8649..bd8b08d8 100644 --- a/config/aerc.conf +++ b/config/aerc.conf @@ -487,14 +487,17 @@ message/rfc822=colorize [openers] # -# Openers allow you to specify the command to use for the :open action on a -# per-MIME-type basis. +# Openers allow you to specify the command to use for the :open and :open-link +# actions on a per-MIME-type basis. The :open-link URL scheme is used to +# determine the MIME type as follows: x-scheme-handler/<scheme>. # # {} is expanded as the temporary filename to be opened. If it is not # encountered in the command, the temporary filename will be appened to the end # of the command. # # Examples: +# x-scheme-handler/irc=hexchat +# x-scheme-handler/http=firefox # text/html=surf -dfgms # text/plain=gvim {} +125 # message/rfc822=thunderbird |