summaryrefslogtreecommitdiff
path: root/alot/commands/taglist.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/taglist.py')
-rw-r--r--alot/commands/taglist.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/alot/commands/taglist.py b/alot/commands/taglist.py
new file mode 100644
index 00000000..e2dc631c
--- /dev/null
+++ b/alot/commands/taglist.py
@@ -0,0 +1,8 @@
+from commands import Command, registerCommand
+from twisted.internet import defer
+
+class TaglistSelectCommand(Command):
+ def apply(self, ui):
+ tagstring = ui.current_buffer.get_selected_tag()
+ cmd = SearchCommand(query='tag:%s' % tagstring)
+ ui.apply_command(cmd)