summaryrefslogtreecommitdiff
path: root/alot/commands/taglist.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-08 21:49:40 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-08 21:49:40 +0100
commitdf3119df31b720219394c449454f373aa900bcb9 (patch)
tree1fefb24975af3aebce7175c699762fa3b73db600 /alot/commands/taglist.py
parentacd0a5689c57ad29c1eeec4e5699e8eefb826a85 (diff)
sorted commands into separate files
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)