There was some comments about plugins a while ago: https://bugzilla.xfce.org/show_bug.cgi?id=11097#c3
I'm not sure mousepad goal is to become a swiss army knife/text editor like many others, it's "mission" is to be lightweight and allow the user to do quick edits. But with a plugin system, the stock mousepad can remain as simple as it is right now and allowing users/plugin devs to use/create anything they wish.
Matt, you said you had a local branch with this implementation, but is it complete? If not, what is not? Would care to share it on github maybe?
There was some comments about plugins a while ago:
https://bugzilla.xfce.org/show_bug.cgi?id=11097#c3
I'm not sure mousepad goal is to become a swiss army knife/text editor like
many others, it's "mission" is to be lightweight and allow the user to do
quick edits. But with a plugin system, the stock mousepad can remain as
simple as it is right now and allowing users/plugin devs to use/create
anything they wish.
Matt, you said you had a local branch with this implementation, but is it
complete? If not, what is not? Would care to share it on github maybe?
I don't remember exactly how complete it was. I think I just got it able to load plugins using the GTK+ widgets that come with libpeas, but not exposing any interfaces. I'll try and see if I can find it, I think it's on the hard drive in my old computer that died.
There's two issues I see with libpeas though; the first is that it requires a fair bit of work to develop plugins (in C), and to expose interfaces, since it uses lots of GObject stuff, and the second is that it's rather liberal about keeping with recent GLib/GObject/GTK+ dependencies and so it would probably require to bump Mousepad's dependencies to follow along.
Another option is to just do a simple GModule/dlopen loader where the plugins (written only in C) would just give the loader some function pointers to call into it, and then exposing all the existing Mousepad headers as the API, and let plugins do whatever they want.
I'm still not 100% sure plugins are good idea for Mousepad though, as you mentioned. Maybe if there was lots of demand or something.