diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-06-14 00:13:20 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-06-14 00:39:34 +0200 |
commit | d8f318df75d5d3f204ff5432ef72696f83e792e1 (patch) | |
tree | f4a7ca5a4d04c7b78476c2cabe44da0c1185589a | |
parent | f55bf93ad9dd9a90afa987ee45ac7c862d85084b (diff) | |
download | wee-slack-d8f318df75d5d3f204ff5432ef72696f83e792e1.tar.gz |
Change thread short name prefix to $
The + prefix is used for presence in dm channels, so it's easier to
distinguish threads by using a different character. $ is used for
message ids, which is how the threads are named by default, so I thought
that was natural.
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index de2b6ce..07c7526 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2470,7 +2470,7 @@ class SlackThreadChannel(SlackChannelCommon): thread_hash = self.parent_message.hash if style == "sidebar": indent = w.config_string(w.config_get("buflist.format.indent")) - return "{}+{}".format(indent, self.label or thread_hash) + return "{}${}".format(indent, self.label or thread_hash) elif style == "long_default": channel_name = self.parent_channel.formatted_name(style="long_default") return "{}.{}".format(channel_name, thread_hash) |