[Geany-Devel] Lua script vs the plugin wishlist
shell_layer-geany at xxxxx
Sat Jun 8 04:54:39 UTC 2013
Hi, folks. Thanks for your feedback.
I'm only a novice with C, but I'll take a look sometime at the GeanyLua source and see whether I think I could fix something broken. Will let the list know what I decide.
@Steven: Interesting to hear about your External Tools project, because several of my Lua scripts are basically to give easy integration with external tools. What are its specific advantages compared to GeanyLua and GeanyPy?
> I think that wishlist is pretty out of date, FWIW. Maybe
> we should start one on the main wiki again?
Yeah, it is out of date, but still, these are things that someone wanted at some point. Seems to me like a good starting point. Feel free to update it, though. I believe a bunch of the items already exist in Geany core or a plugin, so they could be cleaned up.
> > Advanced interaction with Geany's chrome is out,
> Assuming chrome means the GUI, I think there's Lua bindings
> for GTK+ and from what I've read, it's pretty
> straightforward binding C structures in Lua. If you can get
> a hold of the GeanyMainWidgets structure and/or the
> ui_lookup_object function from Lua, you should be golden.
Sadly, I can't see anything in the GeanyLua API that would give me either of those :/ Maybe that's something I can look for in the GeanyLua code.
> Oliver has GeanyPy packages on his PPA for Ubuntu,
> presumably the .debs would work for other Debian-based
> distros as well.
Good to know. I might give that another look at some point.
I do still like the simplicity of the GeanyLua API, but of course, the complexity of the GeanyPy API is the price of the power.
> For the build process, I'm pretty sure it
> shouldn't require 100MB of dependencies to compile (unless
> you've never installed any build tools yet, like compiler,
> autotools, etc).
OK, tried 'sudo apt-get install python python-dev python-gtk2 python-gtk2-dev' on another machine, and this time it wanted to download 57MB, or 41MB without installing recommendations. Better, but still quite a bit, when you consider the size of the main Geany package. And then you still need to download the actual plugin source, compile and install it, and you won't be able to manage it via your package manager.
I work as a programmer, so none of that is a big deal for me. But it's enough for me to prefer GeanyLua for jobs that it can handle. And there are enough of those to keep me busy for a while.
> Anyway, cool that you gave GeanyPy a look, sad that it got
> overlooked for another alternative :) It's a weird
> situation, no uses it because no uses it :)
Well, if it were available from the default repositories, I'd probably use it. Does it actually have to be part of geany-plugins for that?
You could try porting some of my scripts to GeanyPy if you want. They're GPL and all quite short. Have you tried them out?
>  Lex, before you say "because it's not in Geany-Plugins",
> patches welcome on integrating GeanyPy's complex build
> systems into both of Geany-Plugin's even more complex build
> systems, oh and (non-trivial) upgrading to GTK3 and
> Gobject-Introspection-based PyGTK for GTK3 :)
:s No wonder GeanyLua is in peril. Sounds like you have a hard road ahead for GeanyPy, but I do sincerely wish it well, and will keep my eye on news of it.
And I have taken note of the fact that GeanyPy crumbles yet another of the few advantages of Gedit, the ability to integrate a Python console.
Will email the list again soon. I'm working on a Lua script to give Vim keybindings. It's actually quite simple! There are a lot of keys to do, that's all.
More information about the Devel