On Sun, Oct 10, 2010 at 1:52 PM, Brian <[email protected]> wrote:
> Autocomplete and Calltips do not work. They are both enabled.
> Calltips have no visible effect -- dict( or myclass( doesn't do
> anything noticeable.
> Autocomplete has little effect -- dict. or myclass. have the effect of
> switching the 'log' tab into view, but produce no output in that tab.
>
> ..any idea what I'm missing?
You aren't missing much :-) Autocompletion is geared toward Leo's own
source code at present. We are working on a more general solution.
It may be ready in a few days.
The present autocompleter does an excellent job of symbols it knows,
and it knows about Leo's internal conventions.
This is embodied in the following table in defineObjectDict:
# Python globals...
(['aList','bList'], 'python','list'),
(['aString'], 'object','aString'), # An actual string object.
(['cc'], 'object',c.chapterController),
(['c','old_c','new_c'], 'object',c),
(['d','d1','d2'], 'python','dict'),
(['f'], 'object',c.frame),
(['g'], 'object',g),
(['gui'], 'object',g.app.gui),
(['k'], 'object',k),
(['p','p1','p2'], 'object',p.copy()),
(['s','s1','s2','ch'], 'object','aString'),
(['string'], 'object',string), # Python's string module.
(['v','v1','v2'], 'object',p.v),
(['w','widget'], 'object',c.frame.body.bodyCtrl),
]
Thus, any of the following completions should work:
aList., c., d., f., g., s., w.
Furthermore, the completer does know about Python library modules, so
the following will work:
os., sys., etc.
All of the above completions are "live". That is, they act on actual
objects, and can chain based on the "meaning" of those objects. Thus,
the following will work: os.path.j<tab>.
HTH.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.