Home Download Buy Blog Forum Support

Plugin Request: Fetch

Plugin Request: Fetch

Postby JeffreyWay on Wed Dec 28, 2011 3:36 pm

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'
/// etc
}

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!
JeffreyWay
 
Posts: 6
Joined: Wed Dec 28, 2011 3:27 pm

Re: Plugin Request: Fetch

Postby iodic on Wed Dec 28, 2011 3:54 pm

Bump!

Seriously, this would be really cool and useful. :)
iodic
 
Posts: 1
Joined: Wed Dec 28, 2011 3:54 pm

Re: Plugin Request: Fetch

Postby sublimator on Wed Dec 28, 2011 3:55 pm

woof woof
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: Plugin Request: Fetch

Postby C0D312 on Wed Dec 28, 2011 6:02 pm

Adding a bounty to plugin requests? I like the sound of that.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Plugin Request: Fetch

Postby weslly on Wed Dec 28, 2011 6:07 pm

Just wrote it and it works great :D

https://github.com/weslly/Nettuts-Fetch

EDIT: Updated the repository url :)
Last edited by weslly on Sun Jan 01, 2012 7:52 pm, edited 1 time in total.
weslly
 
Posts: 203
Joined: Sun Aug 28, 2011 3:57 am
Location: Brazil

Re: Plugin Request: Fetch

Postby JeffreyWay on Wed Dec 28, 2011 6:20 pm

Sweet. Wow that was fast!! Works perfectly. :D
JeffreyWay
 
Posts: 6
Joined: Wed Dec 28, 2011 3:27 pm

Re: Plugin Request: Fetch

Postby C0D312 on Wed Dec 28, 2011 6:26 pm

Damn weslly, looks like you just made $400.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Plugin Request: Fetch

Postby tigerlabs on Wed Dec 28, 2011 6:30 pm

weslly, I gotta say that is super impressive. I'm trying this plugin, ASAP.
tigerlabs
 
Posts: 1
Joined: Wed Dec 28, 2011 6:29 pm

Re: Plugin Request: Fetch

Postby kronoszx on Sat Jun 09, 2012 1:16 am

Very good package for sublime but not perfect (for me).
It would be perfect if it included a third option like file download. it will use the same options for file but instead of adding the code inline it will download to a folder defined in the settings of the package (something like /public_hml/js or /web/js) and add the code for inclusion where the cursor is. (it can detect if the file is a .css or a .js to use the correct html tags <script> or <style>)

This suggestion is that by using this package with some large files you import a lot of code in your files while downloading code to a defined folder remains the organization. In some cases is good your aproach in other cases this will be a better option. (Sorry for my english, im spanish)
kronoszx
 
Posts: 1
Joined: Sat Jun 09, 2012 1:07 am

Re: Plugin Request: Fetch

Postby undecisive on Wed Jul 25, 2012 10:39 am

I agree. It would be great to also have an "Open as file" mode, where single files can be fetched (read-only) and then refreshed either automatically or manually.

Use case: I have a javascript file at a url (e.g. http://localhost/dev.js) that isn't minified, but is compiled into a single file. In cross-browser testing, errors come up with a line number but no other information. Once I see that line, I can quickly find the correct file to change.
undecisive
 
Posts: 1
Joined: Wed Jul 25, 2012 10:34 am

Next

Return to Plugin Development

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests