On Fri, Nov 14, 2008 at 12:37 PM, programmer.py <[EMAIL PROTECTED]> wrote:
>
> Hi All.
>
> I've written a plugin that I think is pretty useful.  You can read
> about it at http://simiansector.com/autoacp/
>
> You can download the plugin from here: 
> http://simiansector.com/autoacp/autoacp.tar.bz2
>
> If you're not familiar with ACP (I wasn't), it's the mechanism that
> ulipad uses to provide auto completion.  I updated my `ulipad notes`
> documentation with a few things I learned about ACP.  See it at
> http://simiansector.com/ulipad-notes/
>
> It seems to work well enough.  Let me know if you run into any
> problems.
>
> Enjoy!
> jw

well done!

For syncvar is used for quit signal in thread, because acp process is
executed in thread, but it may takes long time, so I pass a syncvar
object, so that the acp process can quit when syncvar.empty is True.
You can also skip it if the process is not too long.

And for analysis, ulipad will analysis the syntax of current source
code, but for now, only python syntax support. It'll ayalysis the
syntax token, for example: class, function, identification, operation,
etc, and these will be used in python syntax autocompletion.

And in your documentation of acp, you said there are four acp exists
now, but I think it's not accurate, in conf folder, there are many
*.acp files, so they are all acp support files, and if the acp file is
complex, like python, jquery, etc, they need to invoke some python
modules to do something, so these python modules are placed in acp
folder. So if your acp process is simple, you don't need to put
anything in acp folder, just an acp file is enough.

And for _project, it'll not automatically add to added directory, but
you should select "Set Project" menu from context menu, it'll add
_profile for you. But you can create _profile like a common text file.
And [default] is not necessary, but you can add some project name,
like: django, etc, and you can get project associated features. But
for acp process, is not necessary.

Your document is excellent. And if you want to include your plugin
into UliPad? If you like I can add it into svn trunk.

-- 
I like python!
UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/
UliWeb <<simple web framework>>: http://uliwebproject.appspot.com
My Blog: (new)http://http://hi.baidu.com/limodou
(old)http://www.donews.net/limodou

Reply via email to