summaryrefslogtreecommitdiff
path: root/alot/widgets
diff options
context:
space:
mode:
authorAndres MRM <andresmrm@gmail.com>2014-12-03 21:17:05 -0200
committerPatrick Totzke <patricktotzke@gmail.com>2015-12-16 17:06:44 +0000
commit70a8229c6f1af62c94dca7f92eadcf9ff2f30e7d (patch)
tree185415e4084b68ac79cc6ccf164dfa349a25d603 /alot/widgets
parentef6a9f04977d527ecda14f70f1cf12158739b6db (diff)
Option to show all tags of a message, even if they are commom to thread
Diffstat (limited to 'alot/widgets')
-rw-r--r--alot/widgets/thread.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py
index c49bbb9d..e0d739b8 100644
--- a/alot/widgets/thread.py
+++ b/alot/widgets/thread.py
@@ -42,9 +42,14 @@ class MessageSummaryWidget(urwid.WidgetWrap):
txt = urwid.Text(sumstr)
cols.append(txt)
- thread_tags = message.get_thread().get_tags(intersection=True)
- outstanding_tags = set(message.get_tags()).difference(thread_tags)
- tag_widgets = [TagWidget(t, attr, focus_att) for t in outstanding_tags]
+ if settings.get('msg_summary_hides_threadwide_tags'):
+ thread_tags = message.get_thread().get_tags(intersection=True)
+ outstanding_tags = set(message.get_tags()).difference(thread_tags)
+ tag_widgets = [TagWidget(t, attr, focus_att)
+ for t in outstanding_tags]
+ else:
+ tag_widgets = [TagWidget(t, attr, focus_att)
+ for t in message.get_tags()]
tag_widgets.sort(tag_cmp, lambda tag_widget: tag_widget.translated)
for tag_widget in tag_widgets:
if not tag_widget.hidden: