openframeworks/OFXcodeMenu

grab addons from ofxaddons.com

jedahan opened this issue ยท 6 comments

maybe grab addons that have been updated for the current version of openframeworks from ofxaddons.com?

๐ŸŒ”

I think that might get a little hairy, especially if you're intentionally not upgrading addons for some reason, or you've modified your copy of the addons etc... are you talking about running an automatic git pull on addons before adding them?

There might be space for something like a "check if there's newer version of the addons you currently have in this project", though. Is that what you had in mind?

I mean in the list of addons, show local addons like normal, but also show addons listed from the website that can be auto-git pulled for you. It would make OFPlugin a kind of ofxAddon package manager, and I thought was overkill until I saw the issue #3 which would involve some sort of http requests.

This was suggested in a slight fever state, so take with a grain of salt.

Ahh you mean cloned, not pulled right? That might be interesting. I've run into situations where I want an addon, but don't happen to have a copy locally. Maybe a thing you can select that gives you a text field prompt, that you can just say which addon you want and it'll go and get it? (basically the same code path as the dependency fetcher).

yes I meant cloned
and a text prompt is a good first start
it would be really cool to parse ofxaddons.com and just provide the user with a filtered list eventually

Yeah at the moment it's already fetching and parsing ofxaddons.com's JSON API, so this isn't too far fetched. I'm inclined to just do things that aren't replicating the site experience (like browsing), so maybe some sort of lean super-quick text search w/ autocomplete would fill this gap.

I'm thinking something like keyboard shortcut -> textbox popup -> as you type you get autocomplete and the brief repo description. If you have the addon it just adds it (as if you selected it from the dropdown). If you don't it does a git clone just like the dependency management.

It looks like ofxaddons.com removed the API, and I think it'd be best to keep OFPlugin relatively lean anyway. Going to close this, but I'll keep it in mind!