From c97102f22c1d19f0e67af878e720710a4cc592ae Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Thu, 13 Oct 2011 14:10:38 +0100 Subject: filled commands/*py --- alot/commands/taglist.py | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 alot/commands/taglist.py (limited to 'alot/commands/taglist.py') 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) + + -- cgit v1.2.3