# HG changeset patch # User Laurent Bessard # Date 1368549749 -7200 # Node ID 5fac491d3a0ef3c10a7b01711a43ff38d191ff33 # Parent 519a21ddbc40bec38f7bd7bba4c054f8c76a3556 Added global variable names in CodeFileEditor auto-completion list diff -r 519a21ddbc40 -r 5fac491d3a0e editors/CodeFileEditor.py --- a/editors/CodeFileEditor.py Tue May 14 11:23:43 2013 +0200 +++ b/editors/CodeFileEditor.py Tue May 14 18:42:29 2013 +0200 @@ -303,9 +303,11 @@ # Code completion else: self.AutoCompSetIgnoreCase(False) # so this needs to match - - # Images are specified with a appended "?type" - self.AutoCompShow(0, " ".join([word + "?1" for word in self.KEYWORDS])) + + keywords = self.KEYWORDS + [var["Name"] + for var in self.Controler.GetVariables()] + keywords.sort() + self.AutoCompShow(0, " ".join(keywords)) else: event.Skip()