diff options
-rw-r--r-- | alot/commands/search.py | 6 |
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 |