diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-06-14 00:28:01 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-06-14 00:39:34 +0200 |
commit | f55bf93ad9dd9a90afa987ee45ac7c862d85084b (patch) | |
tree | 17982151035650135636d82d59347c87819fed37 | |
parent | de5d7818e61f240be5faa5482059e36d7fdc3cb0 (diff) | |
download | wee-slack-f55bf93ad9dd9a90afa987ee45ac7c862d85084b.tar.gz |
Use buflist.format.indent for thread short name indent
-rw-r--r-- | wee_slack.py | 3 |
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) |