diff options
author | Andres MRM <andresmrm@gmail.com> | 2014-12-15 17:04:49 -0200 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2019-03-04 20:38:05 +0000 |
commit | da24f0278769ab16da883412d2c55c3084e884ee (patch) | |
tree | c78dff5919496eec07f17c431522ca21cfebdf5b | |
parent | 4c3fe82101f5f85cf1b956cb384418b930de21f0 (diff) |
Config to display in thread buffer status bar all tags present in a thread, or tags common to all messages in thread
-rw-r--r-- | alot/buffers/thread.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/alot/buffers/thread.py b/alot/buffers/thread.py index 15aa9354..3a6ad3cb 100644 --- a/alot/buffers/thread.py +++ b/alot/buffers/thread.py @@ -42,12 +42,20 @@ class ThreadBuffer(Buffer): self.message_count, 's' * (self.message_count > 1)) + def translated_tags_str(self, intersection=False): + tags = self.thread.get_tags(intersection=intersection) + trans = [settings.get_tagstring_representation(tag)['translated'] + for tag in tags] + return ' '.join(trans) + def get_info(self): info = {} info['subject'] = self.thread.get_subject() info['authors'] = self.thread.get_authors_string() info['tid'] = self.thread.get_thread_id() info['message_count'] = self.message_count + info['thread_tags'] = self.translated_tags_str() + info['intersection_tags'] = self.translated_tags_str(intersection=True) return info def get_selected_thread(self): |