summaryrefslogtreecommitdiff
path: root/alot/commands/search.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-15 11:18:18 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-15 11:18:18 +0100
commit6ef925148f1265fb4f4b333d56b09c483371cefd (patch)
treec39cf11762a354a85a179cacdea12a12f995f0f5 /alot/commands/search.py
parentf09bada5928025be603302535cf244cab0a61ec5 (diff)
decorate search:refine
Diffstat (limited to 'alot/commands/search.py')
-rw-r--r--alot/commands/search.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/alot/commands/search.py b/alot/commands/search.py
index 1b68e491..311b30a5 100644
--- a/alot/commands/search.py
+++ b/alot/commands/search.py
@@ -70,11 +70,13 @@ class ToggleThreadTagCommand(Command):
pass
-@registerCommand(MODE, 'refine', {})
+@registerCommand(MODE, 'refine', arguments=[
+ (['query'], {'nargs':'*', 'default':'', 'help':'search string'})]
+)
class RefineCommand(Command):
"""refine the query of the currently open searchbuffer"""
def __init__(self, query=None, **kwargs):
- self.querystring = query
+ self.querystring = ' '.join(query)
Command.__init__(self, **kwargs)
@defer.inlineCallbacks