diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-08-26 13:44:16 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | 5d1b7404d965235880813264a0a37bb3704810b4 (patch) | |
tree | 9609965ed1bcbb32242df5a353f62a051ed289e8 /slack/config.py | |
parent | 425db0016edb859c13c0e5aede03a469cfcb47ed (diff) | |
download | wee-slack-5d1b7404d965235880813264a0a37bb3704810b4.tar.gz |
Support rendering attachments
Diffstat (limited to 'slack/config.py')
-rw-r--r-- | slack/config.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/slack/config.py b/slack/config.py index 5ea0cbc..4503709 100644 --- a/slack/config.py +++ b/slack/config.py @@ -132,6 +132,23 @@ class SlackConfigSectionLook: callback_change=self.config_change_color_nicks_in_nicklist_cb, ) + self.color_message_attachments: WeeChatOption[ + Literal["prefix", "all", "none"] + ] = WeeChatOption( + self._section, + "color_message_attachments", + "colorize attachments in a message: prefix = only colorize the prefix, all = colorize the whole line, none = don't colorize", + "prefix", + string_values=["prefix", "all", "none"], + ) + + self.display_link_previews = WeeChatOption( + self._section, + "display_link_previews", + "display previews of URLs in messages", + True, + ) + self.display_reaction_nicks = WeeChatOption( self._section, "display_reaction_nicks", |