summaryrefslogtreecommitdiff
path: root/alot/buffers.py
diff options
context:
space:
mode:
authorDaniel <quite@hack.org>2012-02-27 17:50:15 +0100
committerDaniel <quite@hack.org>2012-02-27 17:50:15 +0100
commit1d31be0c43477b528c88ebe7e9e378244c52d361 (patch)
treeab2476ece394acafe3ded9aeebeb18bdcdbc73e2 /alot/buffers.py
parent770592dc10f2ed7bf6b52d70c157395900139837 (diff)
Hidden tag functionality
Diffstat (limited to 'alot/buffers.py')
-rw-r--r--alot/buffers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/alot/buffers.py b/alot/buffers.py
index ba6f45b7..93a1afb9 100644
--- a/alot/buffers.py
+++ b/alot/buffers.py
@@ -345,7 +345,9 @@ class TagListBuffer(Buffer):
for (num, b) in enumerate(displayedtags):
tw = widgets.TagWidget(b)
rows = [('fixed', tw.width(), tw)]
- if tw.translated is not b:
+ if tw.hidden:
+ rows.append(urwid.Text('[hidden]'))
+ elif tw.translated is not b:
rows.append(urwid.Text('(%s)' % b))
lines.append(urwid.Columns(rows, dividechars=1))
self.taglist = urwid.ListBox(urwid.SimpleListWalker(lines))