weslly/Nettuts-Fetch — Issue #4: Idea for grouping
Author: seanwcom
Created: 2012-02-22 15:13:25+00:00
State: open

I'm loving this plugin for ST2! Great work! I've added more than just .js to mine. I've got some sample CSS, HTML, etc in there. I find myself constantly creating test html files on my desktop for testing some basic functionality, so being able to fetch a sample .html file is great.

But, they are all lumped together in the "files" listing. So I tinkered around with the code and was able to set it up to read a new "css" and "html" section out of the Fetch.sublime-settings file. Pretty simple... but what would be really nice is to be able to fully customize the groupings without touching the python code. Maybe as simple as a bit more complex settings file... here's an idea for that file:

```javascript
{
"fetch_types": [
{
"type": "text",
"name": "CSS",
"urls": {
"Bootstrap - CSS": "http://twitter.github.com/bootstrap/assets/css/bootstrap.css",
"Eric Meyer Reset": "http://meyerweb.com/eric/tools/css/reset/reset.css"
}
},{
"type": "text",
"name": "HTML",
"urls": {
"Bootstrap - Starter HTML": "http://twitter.github.com/bootstrap/examples/starter-template.html"
}
},{
"type": "text",
"name": "Javascript",
"urls": {
"jquery - Latest 1.x": "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js",
"jquery - Latest 1.x - minified": "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js",
"jquery ui - Latest 1.x": "https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.js",
"jquery ui - Latest 1.x - minified": "https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"
}
},{
"type": "package",
"name": "PHP Libraries",
"urls": {
"codeigniter": "http://codeigniter.com/download.php"
}
},{
"type": "package",
"name": "HTML Libraries",
"urls": {
"html5-boilerplate": "http://github.com/h5bp/html5-boilerplate/zipball/v2.0stripped"
}
}
]
}
```
This is really just a "nice to have" kind of feature. Ultimately, I'm able to just type the first few letters of what I'm looking for and I get right to it, so it's not a huge deal. But I thought it might be a neat idea and wanted to pass it along. :)