hydrargyrum / eye

Edit Your Editor: a scriptable Qt-based text editor - mirror of https://gitlab.com/hydrargyrum/eye
Do What The F*ck You Want To Public License
15 stars 1 forks source link

How to enable all eye plugins on windows? #19

Open brupelo opened 6 years ago

brupelo commented 6 years ago

@hydrargyrum Hello, nice to meet you, first of all let me tell you I've landed to your repo by googling "qscintilla multiselection", started inspecting the folder structure and I've got impressed about your project. A fast look is already telling me this project is quite amazing and I'd really like to give it a shot. Unfortunately, neither the README nor the docs are really friendly so slow users like me will struggle to get it up and running :)

Thing is, I've looked at the README/docs/#14 but I'm still confusing about how to load plugins on windows7 so eye will be feature-complete and not just a naked editor. So, could you please explain me how to identify which files are the available plugins and can I load all of them so I can test it out?

Thanks in advace!

NS: It's funny, I'm the guy who asked you few months ago about multi selection support on qscintilla #15 ... and now I discover you're quite the master using QScintilla lol, makes sense you already knew the answer at that time... ;) . Just for the record, lastly I've been asking quite a lot of stuff about QScintilla on StackOverflow but people didn't bring too many answers to the table, hopefully I'll learn few tricks playing with your project :D

hydrargyrum commented 6 years ago

Yes, I'm sorry the use is a bit harsh. There definitely should be something for new users. I didn't have a lot of time and add a bit of procrastination, things didn't advance a lot since...

I've started to build a set of example configuration files that load some plugins, enable syntax coloring etc. I will push them later today even if they're not complete yet.

About how to load them, you should first create a folder ~/.config/eyeditor/startup (where ~ is your personal folder, probably C:\Users\<yourname> on Windows (I'm not big on windows, sorry)). In this folder, every .py file you put will be executed at startup, so it's the main place for config files.

From there, you can import plugins like python modules, from eye.helpers. Most plugins can be enabled with a setEnabled function. For example, the eye.helpers.projects enables loading of .editorconfig project files:

import eye.helpers.projects
eye.helpers.projects.setEnabled(True)

I definitely should improve all this. I should also look on stackoverflow more often.

Feel free to join #eye on freenode.