Re: Pysmell (auto completion)

2008-09-02 Thread Edward K. Ream
On Mon, Sep 1, 2008 at 2:05 PM, Terry Brown [EMAIL PROTECTED] wrote: On Mon, 1 Sep 2008 20:10:04 +0300 Ville M. Vainio [EMAIL PROTECTED] wrote: pysmell seems to operate in tags like manner, and that should be good enough for most purposes. I.e. generate the completion database every now

Re: Pysmell (auto completion)

2008-09-02 Thread Terry Brown
On Tue, 2 Sep 2008 10:03:18 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: My guess is that determining the proper type for x in x.y is the hard part. Once the type of x is known, finding completions is just a dict lookup, or should be. Right - but I think, if I'm reading the vim code for

Re: Pysmell (auto completion)

2008-09-02 Thread Ville M. Vainio
On Tue, Sep 2, 2008 at 6:39 PM, Terry Brown [EMAIL PROTECTED] wrote: Right - but I think, if I'm reading the vim code for pysmell correctly, pysmell will do that part for you, whereas, if I read the ctags API correctly, ctags won't... unless perhaps you update the tag file with the contents

Re: Pysmell (auto completion)

2008-09-02 Thread Edward K. Ream
On Tue, Sep 2, 2008 at 10:45 AM, Ville M. Vainio [EMAIL PROTECTED] wrote: ModuleName.ClassName. [file in the method names] is easyish, but x = Foo() a = x. [now what are my choices] is trickier. This article explains it pretty well:

Pysmell (auto completion)

2008-09-01 Thread Ville M. Vainio
Bumped on this on planet python: http://orestis.gr/en/blog/2008/08/31/announcing-pysmell/ It may be something that could be usefull for Leo... -- Ville M. Vainio - vivainio.googlepages.com blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'

Re: Pysmell (auto completion)

2008-09-01 Thread Edward K. Ream
On Mon, Sep 1, 2008 at 9:57 AM, Terry Brown [EMAIL PROTECTED] wrote: Had a quick look, looks interesting, I'm guessing much easier to integrate than Komodo, although I don't know how it compares to Komodo. API docs. seem to be lacking (just the way Edward likes it :-) Heh. I was thinking

Re: Pysmell (auto completion)

2008-09-01 Thread Kent Tenney
On Mon, Sep 1, 2008 at 11:42 AM, Edward K. Ream [EMAIL PROTECTED] wrote: On Mon, Sep 1, 2008 at 9:57 AM, Terry Brown [EMAIL PROTECTED] wrote: Had a quick look, looks interesting, I'm guessing much easier to integrate than Komodo, although I don't know how it compares to Komodo. API docs.

Re: Pysmell (auto completion)

2008-09-01 Thread Ville M. Vainio
On Mon, Sep 1, 2008 at 7:42 PM, Edward K. Ream [EMAIL PROTECTED] wrote: I wonder if that can be done fast enough for auto-completion? Perhaps by caching the text from preceding nodes part of the answer? Speed is the heart of the matter. In general, stupid scanning is too slow. There are

Re: Pysmell (auto completion)

2008-09-01 Thread Terry Brown
On Mon, 1 Sep 2008 20:10:04 +0300 Ville M. Vainio [EMAIL PROTECTED] wrote: pysmell seems to operate in tags like manner, and that should be good enough for most purposes. I.e. generate the completion database every now and then, and just use it (without updating it) in the interim Actually