summaryrefslogtreecommitdiff
path: root/alot/commands/taglist.py
blob: e2dc631c89900e0c593c6fdf80142b4334881731 (plain)
1
2
3
4
5
6
7
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)