pisaiah / Vide

An simple IDE for V made in V.
https://discord.gg/NruVtYBf5g
MIT License
114 stars 10 forks source link

Idea: Plugins or extensions of some kind. #3

Open EmmaTheMartian opened 2 years ago

EmmaTheMartian commented 2 years ago

Hello! I was planning to make a V IDE actually (With the same name in mind too :joy:), but the UI module was... harsh to me.

Point is, I would love to have a system of plugins or extensions for this IDE, I can attempt to make a PR for this, although I cannot promise that I will yet.

My thought is making use of the dl module, with a folder called plugins or something similar, then, people can program their plugin in V, then compile with -shared and put the .so / .dylib / .dll in the plugins folder, for it to be loaded with dl.open_opt and dl.sym_opt.

The hard part is making an API or some other way for plugins to interact with the UI or add buttons to a menu.

pisaiah commented 2 years ago

I've added a basic plugin system in the latest commit (https://github.com/IsaiahPatton/Vide/commit/b7f787b9e4482447845f77d4b4ac8698dc200d62). Currently the main Window object is passed to the plugin.

EmmaTheMartian commented 2 years ago

Okay, nice! I was just working on a small PR for a plugin system! :joy: