From 3ff1c96634cea36be70ededc295607b8935cf38c Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Wed, 5 Jul 2017 11:12:05 +0200 Subject: Display tags in envelope buffer --- alot/buffers.py | 3 +++ alot/commands/envelope.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/alot/buffers.py b/alot/buffers.py index 80ec0855..09cf1fe8 100644 --- a/alot/buffers.py +++ b/alot/buffers.py @@ -178,6 +178,9 @@ class EnvelopeBuffer(Buffer): description += key.uids[0].uid lines.append(('GPG encrypt', description)) + if self.envelope.tags: + lines.append(('Tags', ','.join(self.envelope.tags))) + # add header list widget iff header values exists if lines: key_att = settings.get_theming_attribute('envelope', 'header_key') diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index 5537a31f..481af1f3 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -625,3 +625,5 @@ class TagCommand(Command): elif self.action == 'toggle': new = old.symmetric_difference(tags) envelope.tags = sorted(new) + # reload buffer + ui.current_buffer.rebuild() -- cgit v1.2.3