<br><br><div class="gmail_quote">2009/6/28 Andreas Mokros <span dir="ltr"><<a href="mailto:am@medienpensionat.com">am@medienpensionat.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi.<br>
<br>
I started to write a plugin for auto-completion of haxe-code. The<br>
Haxe compiler has a feature that it compiles up to a certain point<br>
in a file and then spits out a list of possible classes and types<br>
for the file at that point, see here:<br>
<a href="http://ncannasse.fr/blog/haxe_completion" target="_blank">http://ncannasse.fr/blog/haxe_completion</a><br>
There once was a plugin for using it called hxDev (latest version<br>
hxDev2):<br>
<a href="http://lib.haxe.org/p/hxDev2" target="_blank">http://lib.haxe.org/p/hxDev2</a><br>
But it doesn't compile with the newest plugin-API anymore. I couldn't<br>
really figure out what to change and where to make it work, so I<br>
tried to start from scratch. Thanks to your nice plugin-API and good<br>
documentation of it I managed to get a running plugin in a couple of<br>
days, although it's my very first attempt in GTK-programming.<br>
<br>
Now I have a couple of questions:<br>
- Would it make sense to add it to the geany-plugins repository<br>
  (because it's very language-specific)?<br>
- I'm not sure what kind of build-system to use now. ATM I simply added<br>
  my plugin to wscript and use waf. Is waf deprecated now with the new<br>
  merged plugin-build-system? Is a makefile or a autogen.sh script<br>
  better?<br>
- The plugin depends on editor-notify of PluginCallback. Is it OK to<br>
  add that signal globally (will be called for all documents then,<br>
  right?) and then check for haxe-files or would it be better to add<br>
  that signal only when a haxe-file is active?<br>
- I saw a property "type" in the GeanyProjects-struct that seems to<br>
  mean that projects can be extended by plugins. Is there some<br>
  documentation for this? It would be really nice to be able to add<br>
  some options for haxe-projects. I also read in a post here that there<br>
  is a build-system-upgrade in the making with lots of options that can<br>
  be set from projects. Maybe this would do already. Any plans when<br>
  this will be merged in the trunk?</blockquote><div><br>The build-system upgrade is making the build menu fully configurable from projects and/or preferences overriding the defaults, allowing both menu item labels and commands to be configured.  I'm not sure if this will help you, although extra filetype configurable commands may be helpfull.  Currently the structures and functions relating to this are not part of the plugin api, more discussion would be needed about extending the api (pro more capability for plugins, con more to maintain and limits on changing Geany internals, potential unexpected interactions between plugins and configuration).<br>
<br>It is progressing, although it is taking longer than expected to untangle interactions with other parts of Geany.  A prototype should be available on the build-system branch late next week, watch this ML.  With such a big change I guess a bit ;-) of testing will be needed prior to merge to trunk.<br>
<br>Cheers<br>Lex<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Best regards and thanks for making this great editor.<br>
<font color="#888888"><br>
--<br>
Mockey<br>
_______________________________________________<br>
Geany-devel mailing list<br>
<a href="mailto:Geany-devel@uvena.de">Geany-devel@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
</font></blockquote></div><br>