Hey guys! So I have a plugin request that I think could be helpful to a large number of people. There should be an easy non-terminal way for people to pull in pieces of code. For example, let's say that I'm using Eric Meyer's reset; I could save it to a snippet, but then, if he updates it at any point, I'm now using an out-dated stylesheet.
Can one of you build a curl plugin? As I imagine it, there could be an options page for attaching urls to keys.
'reset' : 'http://meyerweb.com/eric/tools/css/reset/reset.css',
'prefix-free' : 'https://raw.github.com/LeaVerou/prefixfree/master/prefixfree.min.js'
These keys will then be available to me as commands (maybe under a "fetch" namespace or something). So, I create a new blank reset.css file, run the "fetch reset" command, and, behind the scenes, the plugin fetches the data and pastes the result into the current file.
(It would be even cooler if there was a way to fetch zip files. Maybe I want the latest version of WordPress. I can run "fetch WordPress", and it will use the url to the latest release of the framework, download the zip file, and extract it to the project directory.)
Granted, I know it's easy to do something like: curl http://meyerweb.com/eric/tools/css/reset/reset.css
> reset.css in the terminal, but a plugin like this would still prove to be helpful for a few reasons:
- You don't have to memorize these urls
- Designers hate the command line
- It's faster
So let me know what you think. If incentive is required, I'm the editor of Nettuts+. If one of you would build it, and allow us to brand/name it as Nettuts+ Fetch (or something similar), we could pay you $400. Either way works!