Made suggestions case-insensitive which also puts _ prefixed items at the bottom. Improvements have also been made to the way the list works, when it should disappear/update/confirm, etc.

This commit is contained in:
2008-07-15 17:03:59 +00:00
parent 9037159d7a
commit 512eec04aa
3 changed files with 82 additions and 34 deletions

View File

@@ -26,7 +26,7 @@ def suggest_cmp(x, y):
"""Use this method when sorting a list of suggestions.
"""
return cmp(x[0], y[0])
return cmp(x[0].upper(), y[0].upper())
def cached_generate_tokens(txt, since=1):
"""A caching version of generate tokens for multiple parsing of the same