From 6ef925148f1265fb4f4b333d56b09c483371cefd Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Sat, 15 Oct 2011 11:18:18 +0100 Subject: decorate search:refine --- alot/commands/search.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'alot/commands/search.py') 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 -- cgit v1.2.3