the auto completion is working! and may god bless you all! ;-)

This commit is contained in:
David Halter
2012-04-08 04:25:06 +02:00
parent f91fb8027e
commit baf8c60e9a
5 changed files with 125 additions and 76 deletions

View File

@@ -2,7 +2,7 @@
import functions
functions.debug.debug_function = functions.debug.print_to_stdout
#functions.debug.debug_function = functions.debug.print_to_stdout
functions.debug.ignored_modules += ['parsing', 'builtin']
functions.modules.module_find_path.insert(0, '.')
@@ -12,3 +12,17 @@ for i in range(1):
completions = functions.complete(code, 50, 200)
print '\n', ', '.join(str(c) for c in completions)
out = []
for c in completions:
d = dict(word=str(c),
abbr=c.complete,
menu=c.description, # the stuff directly behind the completion
info=c.help, # docstr and similar stuff
kind=c.type, # completion type
icase=1, # case insensitive
dup=1, # allow duplicates (maybe later remove this)
)
out.append(d)
print str(out)