On Sun, 27 Mar 2016 08:30:58 -0700 (PDT)
john lunzer <[email protected]> wrote:

> This is not a complete auto-complete solution (unavoidable pun). It
> doesn't do two things, it isn't automatic (and so will likely be
> overlooked) and it doesn't handle local variables or local objects.

Right - it's not module specific, it's specific to "live objects" that
exist either in the main Leo interpreter, or the c.vs namespace, I was
just pointing out the latter.

It doesn't do the clever auto completion of what you just typed that
some things do - I always kind of wonder how they handle things like:

proc = subprocess.Popen(['format', 'C:'])
results = proc.run()

... now do auto completion on `results`...

But that's a separate issue :-)

Cheers -Terry

> Unless I just don't have enough experience with it, it seems like
> it's geared toward modules. If work is going to be put towards
> autocompletion then I recommend considering Jedi.
> 
> On Sunday, March 27, 2016 at 10:08:18 AM UTC-4, Terry Brown wrote:
> >
> > On Sun, 27 Mar 2016 05:39:44 -0500 
> > "Edward K. Ream" <[email protected] <javascript:>> wrote: 
> >
> > > I'm starting to get the feeling that might be possible to do 
> > > auto-completion​ ​using live Python objects. 
> >
> > So in what seems to be a completely coincidental way, that also
> > relates to valuespace - some time ago I tweaked the autocomplete
> > code to look at objects in the c.vs namespace.  So if you type: 
> >
> > import csv 
> >
> > reader = csv.<Ctrl-Space> 
> >
> > you get "No completions" 
> >
> > but if you select the "import csv" text and run `vs-eval`, then
> > you'll get completions for "reader = csv.<Ctrl-Space>". 
> >
> > So in that sense at least Leo already does autocomplete on live
> > objects, all I did was add c.vs to the list it searches. 
> >
> > Cheers -Terry 
> >
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to