aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-06-14 00:28:01 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-06-14 00:39:34 +0200
commitf55bf93ad9dd9a90afa987ee45ac7c862d85084b (patch)
tree17982151035650135636d82d59347c87819fed37
parentde5d7818e61f240be5faa5482059e36d7fdc3cb0 (diff)
downloadwee-slack-f55bf93ad9dd9a90afa987ee45ac7c862d85084b.tar.gz
Use buflist.format.indent for thread short name indent
-rw-r--r--wee_slack.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 2f75b52..de2b6ce 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2469,7 +2469,8 @@ class SlackThreadChannel(SlackChannelCommon):
def formatted_name(self, style="default"):
thread_hash = self.parent_message.hash
if style == "sidebar":
- return " +{}".format(self.label or thread_hash)
+ indent = w.config_string(w.config_get("buflist.format.indent"))
+ 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)