! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Feature request: Mousepad plugins
Status:
RESOLVED: MOVED
Product:
Mousepad
Component:
General

Comments

Description Mitt Green 2016-01-03 18:32:42 CET
Simple plugins such as terminal (probably based on xfce4-terminal) and file browser pane.
Comment 1 Andre Miranda editbugs 2016-01-08 01:09:16 CET
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?
Comment 2 Matthew Brush editbugs 2016-01-08 03:00:23 CET
(In reply to André Miranda from comment #1)
> 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.
Comment 3 Git Bot editbugs 2020-05-24 01:30:03 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/apps/mousepad/-/issues/20.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #12391

Reported by:
Mitt Green
Reported on: 2016-01-03
Last modified on: 2020-05-24

People

Assignee:
Matthew Brush
CC List:
2 users

Version

Version:
Unspecified
Target Milestone:
Mousepad 0.2.x

Attachments

Additional information