summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-20 16:44:38 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-20 16:44:38 +0100
commitda975912967da8b43f88d307c167c767986687f9 (patch)
treee7e91f7daa1312097e664d9cfb8b227fb94f6a2d
parent456d06796b9e3d2bec9fdc2e151ff3962cdc42a5 (diff)
completion for 'from:' keywords in querystrings
-rw-r--r--alot/completion.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/completion.py b/alot/completion.py
index c29ed978..2f2d3d52 100644
--- a/alot/completion.py
+++ b/alot/completion.py
@@ -61,11 +61,11 @@ class QueryCompleter(Completer):
def complete(self, original, pos):
mypart, start, end, mypos = self.relevant_part(original, pos)
myprefix = mypart[:mypos]
- m = re.search('(tag|is|to):(\w*)', myprefix)
+ m = re.search('(tag|is|to|from):(\w*)', myprefix)
if m:
cmd, params = m.groups()
cmdlen = len(cmd) + 1 # length of the keyword part incld colon
- if cmd == 'to':
+ if cmd in ['to', 'from']:
localres = self._contactscompleter.complete(mypart[cmdlen:],
mypos - cmdlen)
else: