diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-13 14:10:38 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-13 14:10:38 +0100 |
commit | c97102f22c1d19f0e67af878e720710a4cc592ae (patch) | |
tree | 7ea89fcdee52b81676e87809d4bae6b1f70748e2 /alot/commands/taglist.py | |
parent | c99da513998ffdd28a5fd7c600a42e858e7c876b (diff) |
filled commands/*py
Diffstat (limited to 'alot/commands/taglist.py')
-rw-r--r-- | alot/commands/taglist.py | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/alot/commands/taglist.py b/alot/commands/taglist.py new file mode 100644 index 00000000..989453cd --- /dev/null +++ b/alot/commands/taglist.py @@ -0,0 +1,43 @@ +from commands import Command, registerCommand +from twisted.internet import defer + +import os +import re +import code +import glob +import logging +import threading +import subprocess +import shlex +import email +import tempfile +from email import Charset +from email.header import Header +from email.mime.text import MIMEText +from email.mime.multipart import MIMEMultipart +import urwid +from twisted.internet import defer + +import buffer +import settings +import widgets +import completion +import helper +from db import DatabaseROError +from db import DatabaseLockedError +from completion import ContactsCompleter +from completion import AccountCompleter +from message import decode_to_unicode +from message import decode_header +from message import encode_header +MODE = 'taglist' + + +@registerCommand(MODE, 'select', {}) +class TaglistSelectCommand(Command): + def apply(self, ui): + tagstring = ui.current_buffer.get_selected_tag() + cmd = SearchCommand(query='tag:%s' % tagstring) + ui.apply_command(cmd) + + |