diff options
-rw-r--r-- | wee_slack.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/wee_slack.py b/wee_slack.py index d81659c..8e56ce1 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -997,10 +997,13 @@ class SlackChannel(object): return True return False def formatted_name(self, style="default", typing=False, **kwargs): - if not typing: - prepend = "#" + if config.channel_name_typing_indicator: + if not typing: + prepend = "#" + else: + prepend = ">" else: - prepend = ">" + prepend = "#" select = { "default": prepend + self.slack_name, "sidebar": prepend + self.slack_name, @@ -1446,10 +1449,13 @@ class SlackMPDMChannel(SlackChannel): self.name = "|".join("-".join(n.split("-")[1:-1]).split("--")) def formatted_name(self, style="default", typing=False, **kwargs): adjusted_name = "|".join("-".join(self.slack_name.split("-")[1:-1]).split("--")) - if not typing: - prepend = " " + if config.channel_name_typing_indicator: + if not typing: + prepend = "#" + else: + prepend = ">" else: - prepend = ">" + prepend = "#" select = { "default": adjusted_name, "sidebar": prepend + adjusted_name, @@ -2911,6 +2917,7 @@ class PluginConfig(object): 'thread_suffix_color': 'lightcyan', 'unhide_buffers_with_activity': 'false', 'short_buffer_names': 'false', + 'channel_name_typing_indicator': 'true', 'background_load_all_history': 'false', 'never_away': 'false', 'server_aliases': '', |