diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-08 21:49:40 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-08 21:49:40 +0100 |
commit | df3119df31b720219394c449454f373aa900bcb9 (patch) | |
tree | 1fefb24975af3aebce7175c699762fa3b73db600 /alot/commands/taglist.py | |
parent | acd0a5689c57ad29c1eeec4e5699e8eefb826a85 (diff) |
sorted commands into separate files
Diffstat (limited to 'alot/commands/taglist.py')
-rw-r--r-- | alot/commands/taglist.py | 8 |
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) |