diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-13 19:53:49 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-13 19:53:49 +0100 |
commit | df06f6019df34fabfc0748744e67d27d62a2a75d (patch) | |
tree | e44cefb4ccaedacba336cec1728caa2043cf2bfa /alot/commands/search.py | |
parent | 897820c419d68fe38e160f03f0374c703a752183 (diff) |
imports and pep8
Diffstat (limited to 'alot/commands/search.py')
-rw-r--r-- | alot/commands/search.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/alot/commands/search.py b/alot/commands/search.py index 45c05763..1b68e491 100644 --- a/alot/commands/search.py +++ b/alot/commands/search.py @@ -1,14 +1,15 @@ -from commands import Command, registerCommand +from alot.commands import Command, registerCommand from twisted.internet import defer -from db import DatabaseROError -import commands -import buffers +from alot.db import DatabaseROError +from alot import commands +from alot import buffers MODE = 'search' -@registerCommand(MODE, 'openthread', {}) #todo: make this select + +@registerCommand(MODE, 'openthread', {}) # todo: make this select class OpenThreadCommand(Command): """open a new thread-view buffer""" def __init__(self, thread=None, **kwargs): @@ -68,6 +69,7 @@ class ToggleThreadTagCommand(Command): elif isinstance(cb, buffers.ThreadBuffer): pass + @registerCommand(MODE, 'refine', {}) class RefineCommand(Command): """refine the query of the currently open searchbuffer""" @@ -143,5 +145,3 @@ class RetagCommand(Command): sbuffer = ui.current_buffer threadwidget = sbuffer.get_selected_threadline() threadwidget.rebuild() # rebuild and redraw the line - - |