Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support gedit forks .. Xed, Pluma #5

Open
1 of 2 tasks
stuaxo opened this issue May 16, 2018 · 11 comments
Open
1 of 2 tasks

Support gedit forks .. Xed, Pluma #5

stuaxo opened this issue May 16, 2018 · 11 comments
Milestone

Comments

@stuaxo
Copy link
Contributor

stuaxo commented May 16, 2018

Need some info on what they are...

  • Pluma (Gtk3 - seems very similar to Xed at this point)
  • Xed (basically Gedit just before Gio)
@rlafuente
Copy link
Collaborator

This is great stuff -- I almost forgot Pluma existed, and didn't know about Xed. With Gedit development going slow, these look like a good home for our Gedit plugin.

Leaving the links for each here:

@stuaxo
Copy link
Contributor Author

stuaxo commented Oct 24, 2018

So, Xed now works, Pluma may not be far behind.

Xed is basically the new Gedit, so everything works.
At least Pluma is Gtk3, so we won't need to take along too much of the dodgy old code.

As a status update..

Preferences code is the dodgyest bit, it use something like an MVC model to separate the settings backend from the GUI, but it's a bit messy right now.

Choosing a virtualenv works almost as well as our old extension, and is good enough for now.

The installer seems kind of magical now it works.. the setup.py puts everything in the right place for different editors.

Started building out some helper code that will eventually help out the IDE, but probably a way to go.

Existing helper code, is some Gio SimpleAction stuff (basically making it easy to wire up toggle actions right now).

I'm not super keen on the existing Gtk3 menu code, since it works differently to our Gio menu code; I'll probably bring it over to get Pluma and the IDE examples menus.

Building the console widget looks like it could take a while to get right... I wonder how hard it is to embed VTE and run shoebot in that instead ?

If we did that we could probably swap out the current ide<->shoebot communication layer with something more sane than special messages on stdin/stdout.

@stuaxo stuaxo added this to the 0.2 milestone Jan 17, 2019
@stuaxo
Copy link
Contributor Author

stuaxo commented Jan 17, 2019

Some notes to myself:

Pluma is missing most of the things Gedit and Xed has, so its plugins access libpeas APIs.

The thing here would be to write polyfills, so that everything uses an API that looks like the most "complete" editior.

To make this manageable next time I look at this, I need to start documenting this somewhere.

@stuaxo
Copy link
Contributor Author

stuaxo commented Jan 19, 2019

@rlafuente do you use Mint (I have a vague memory of this, but maybe it's wrong?)

@rlafuente
Copy link
Collaborator

Not for a long time sadly, been using Debian Testing for some years now. Can I help here somehow?

@stuaxo
Copy link
Contributor Author

stuaxo commented Jan 21, 2019

Hm, not really sure until I get something working.

I keep thinking like a developer when this question is asked and come up with tiny tasks.

Do you have any idea of the how many people use Pluma vs Xed ? I might get just Xed working at first as it's most similar to Gedit 3.12 and above.

@stuaxo
Copy link
Contributor Author

stuaxo commented Jan 22, 2019

AFAICT it looks like Xed is aiming to replace Pluma, so I'll just go for Xed at first, though all this is overkill for just two editors 🤷‍♂️ but kind of fun to get working anyway.

@rlafuente
Copy link
Collaborator

Go wild, I'm not super keen about focusing on "useful" features, but rather hacking on what's fun.

I'm for prioritising Xed fwiw!

@stuaxo
Copy link
Contributor Author

stuaxo commented Jan 24, 2019

Yeah, I'll probably get Xed working just to land get this plugin thing sorted.

Will start ticket to LGM discussion

@stuaxo
Copy link
Contributor Author

stuaxo commented Feb 20, 2019

Hey @rlafuente this is now working (for some value of working) in Xed.

With the latest shoebot from git and the latest plugin_shoebot installed from git - AND running xed in the shoebot directory (and a bit of luck in the venv chooser (I think the "default option) you can get the examples menu in Xed.

There are still lots of little things broken (duplication in venv menu in editor, shoebot disconnects from editor), but it's at a fixing-bugs stage now.

It would be great if you could have a play and try to breaking it :)

@stuaxo
Copy link
Contributor Author

stuaxo commented Feb 22, 2019

OK, looks like Pluma is out for the moment as it's plugin support is not working mate-desktop/pluma#305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants