diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-09-18 21:53:24 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-09-22 10:30:37 +0100 |
commit | cd049ac737157392956dc5c4c097f513a08f5635 (patch) | |
tree | b525e3537f3802e87fbcaceb521d15f43337e1b0 /alot/completion.py | |
parent | 37f4e4faaed9643bda6cb5e5000b3455a7a39898 (diff) |
directly use "realname <address>" in AccountCompleter
instead of only completing addresses and afterwards looking up a
matching account
Diffstat (limited to 'alot/completion.py')
-rw-r--r-- | alot/completion.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/completion.py b/alot/completion.py index c2b0e18e..c3bc60d6 100644 --- a/alot/completion.py +++ b/alot/completion.py @@ -263,7 +263,8 @@ class AccountCompleter(StringlistCompleter): """completes users' own mailaddresses""" def __init__(self, **kwargs): - resultlist = settings.get_main_addresses() + accounts = settings.get_accounts() + resultlist = ["%s <%s>" % (a.realname, a.address) for a in accounts] StringlistCompleter.__init__(self, resultlist, match_anywhere=True, **kwargs) |