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

How to enable all eye plugins on windows? #19

Open
brupelo opened this issue Jun 2, 2018 · 1 comment
Open

How to enable all eye plugins on windows? #19

brupelo opened this issue Jun 2, 2018 · 1 comment

Comments

@brupelo
Copy link

brupelo commented Jun 2, 2018

@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

@brupelo brupelo changed the title How to enable use eye plugins? How to enable all eye plugins on windows? Jun 2, 2018
@hydrargyrum
Copy link
Owner

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.

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