Hello,
I've created a bundle for Prototype & Scriptaculus. It's an early version but I thought I share it anyway. Please send me any comments.
http://burnfield.com/martin/2006/07/14/textmate-prototype-scriptaculus-bundl...
Ciao Martin
pluxemburg.com burnfield.com/martin
On Jul 14, 2006, at 4:00 PM, Martin Ström wrote:
Hello,
I've created a bundle for Prototype & Scriptaculus. It's an early version but I thought I share it anyway. Please send me any comments.
http://burnfield.com/martin/2006/07/14/textmate-prototype- scriptaculus-bundle
Ciao Martin
pluxemburg.com burnfield.com/martin
You might want to check out my Prototype stuff It's also based off of Justin Palmer's stuff. Maybe we could merge them and actually release it.
http://textmate.svn.subtlegradient.com/Bundles/Javascript% 20Extras.tmbundle/ http://textmate.svn.subtlegradient.com/Bundles/Javascript_Extras.zip
thomas Aylott—subtleGradient
Great. I'll look through your stuff and add some parts back to the bundle. My plan is to improve the JavaScript bundle as well when I find some time.
On 7/15/06, thomas Aylott thomas.42@gmail.com wrote:
On Jul 14, 2006, at 4:00 PM, Martin Ström wrote:
Hello,
I've created a bundle for Prototype & Scriptaculus. It's an early version but I thought I share it anyway. Please send me any comments.
http://burnfield.com/martin/2006/07/14/textmate-prototype-scriptaculus-bundl...
Ciao Martin
pluxemburg.com burnfield.com/martin
You might want to check out my Prototype stuff It's also based off of Justin Palmer's stuff. Maybe we could merge them and actually release it.
http://textmate.svn.subtlegradient.com/Bundles/Javascript%20Extras.tmbundle/...
thomas Aylott—subtleGradient
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Please do merge and improve on javascript! You'll have at least one eager user :)
Perhaps I can be of some assistance as well :/
Andreas
Great. I'll look through your stuff and add some parts back to the bundle. My plan is to improve the JavaScript bundle as well when I find some time.
One small fix:
{ name = 'support.function.js.firebug'; match = '.(warn|info|log|error|timeEnd|time|answer)\b'; },
answer was misspelled and the trailing \b was missing.
Regards,
Aparajita www.aparajitaworld.com
"If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoylibrary.com
On Jul 16, 2006, at 3:53 PM, Martin Ström wrote:
{ name = 'support.function.js.firebug'; match = '.(warn|info|log|error|timeEnd| time|answer)\b'; }, answer was misspelled and the trailing \b was missing.
Thanks. It was supposed to be "assert" but it was misspelled anyways ;)
Fixed
thomas Aylott—subtleGradient
On Jul 15, 2006, at 8:21 AM, Martin Ström wrote:
On 7/15/06, thomas Aylott thomas.42@gmail.com wrote:
On Jul 14, 2006, at 4:00 PM, Martin Ström wrote: Hello,
I've created a bundle for Prototype & Scriptaculus. It's an early version but I thought I share it anyway. Please send me any comments.
http://burnfield.com/martin/2006/07/14/textmate-prototype- scriptaculus-bundle
Ciao Martin
pluxemburg.com burnfield.com/martin
You might want to check out my Prototype stuff It's also based off of Justin Palmer's stuff. Maybe we could merge them and actually release it.
http://textmate.svn.subtlegradient.com/Bundles/Javascript% 20Extras.tmbundle/http://textmate.svn.subtlegradient.com/Bundles/ Javascript_Extras.zip
thomas Aylott—subtleGradient
Great. I'll look through your stuff and add some parts back to the bundle. My plan is to improve the JavaScript bundle as well when I find some time.
I went ahead and merged the files in my repo. http://textmate.svn.subtlegradient.com/Bundles/Js%20Prototype%20&% 20Scriptaculous.tmbundle/ http://textmate.svn.subtlegradient.com/Bundles/Javascript% 20Extras.tmbundle/ http://textmate.svn.subtlegradient.com/Bundles/Javascript_Extras.zip
Next i'm going to actually start to merge the language syntax. And then i'll add it to the official TextMate repo.
Any suggestions for anything that needs doing? Maybe a readme to take credit for our parts and to let the users know who to complain to ;)
thomas Aylott—subtleGradient
I went ahead and merged the files in my repo. http://textmate.svn.subtlegradient.com/Bundles/Js%20Prototype%20&%20Scri... http://textmate.svn.subtlegradient.com/Bundles/Javascript%20Extras.tmbundle/ http://textmate.svn.subtlegradient.com/Bundles/Javascript_Extras.zip
Next i'm going to actually start to merge the language syntax. And then i'll add it to the official TextMate repo.
Super!
Any suggestions for anything that needs doing? Maybe a readme to take credit for our parts and to let the users know who to complain to ;)
Yes. Please point to Justin Palmer for the original grammar as well. I've already started to add some more snippets (Element.add|has|removeClassName as well as a start for a smarter/better $ function (that'll work with $A, $H, $$ as well.
On my local copy I changed the bundle name to "script.aculo.us" instead since it's the actual name of the library, so you might want to change that for the official repo as well.
Martin
thomas Aylott—subtleGradient
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
I went ahead and merged the files in my repo. http://textmate.svn.subtlegradient.com/Bundles/Js%20Prototype%20&% 20Scriptaculous.tmbundle/ http://textmate.svn.subtlegradient.com/Bundles/Javascript% 20Extras.tmbundle/ http://textmate.svn.subtlegradient.com/Bundles/Javascript_Extras.zip
Next i'm going to actually start to merge the language syntax. And then i'll add it to the official TextMate repo.
Any suggestions for anything that needs doing? Maybe a readme to take credit for our parts and to let the users know who to complain to ;)
thomas Aylott—subtleGradient
Yes, a suggestion. Don't know if you read the rails spinoff list, but this bundle was announced there as well, and it seems that the decision was made to turn all double-quotes into single-quotes for consistency with prototype and scriptaculous syntax. So this should be implemented :D
other than that, the more snippets the better, martin ström (hail Sweden, I guess?) seems to be making more. Since I'm a lazy person and try to stay away from betas, a so so status update with a zip bundle would be lovely as well ˆ_ˆ
Andreas
other than that, the more snippets the better, martin ström (hail Sweden, I guess?) seems to be making more. Since I'm a lazy person and try to stay away from betas, a so so status update with a zip bundle would be lovely as well ˆ_ˆ
japp, sweden!
We should try to get the bundle into the official svn repo asap so we easier can work on it.
On Jul 16, 2006, at 4:01 PM, Martin Ström wrote:
We should try to get the bundle into the official svn repo asap so we easier can work on it.
Done. http://macromates.com/svn/Bundles/trunk/Bundles/JavaScript%20Prototype %20&%20Script_aculo_us.tmbundle/
If you have commit rights, then go to town. I'd like to handle merging the language next thing, if you want to go ahead and add your new snippets.
I changed the each snippet to my version, because i like my version better :P But maybe it should be an alternate form?
thomas Aylott—subtleGradient
On Jul 16, 2006, at 4:31 PM, thomas Aylott wrote:
I'd like to handle merging the language next thing, if you want to go ahead and add your new snippets.
Ok. Languages merged. Some stuff was moved into the Javascript language. Some stuff in the bracketed thing was massively improved. Check it out with the latest version of Brilliance Black to see what has changed. Also, you can hit Edit>Select>Current Scope ⌃⌥b inside of a string to select the contents only and then hit it again to select the quotes around it. Play around with the select current scope thing, it's fun. It really goes well with Balance Jr ;) (or vice versa)
Enjoy.
thomas Aylott—subtleGradient
Jumps up and down and can't get wait to get to work to try it out (ok, not really, but still)
btw, what sort of thing was moved into the javascript bundle, was it only language defititions?
Andreas
On Jul 17, 2006, at 11:10 , thomas Aylott wrote:
On Jul 16, 2006, at 4:31 PM, thomas Aylott wrote:
I'd like to handle merging the language next thing, if you want to go ahead and add your new snippets.
Ok. Languages merged. Some stuff was moved into the Javascript language. Some stuff in the bracketed thing was massively improved. Check it out with the latest version of Brilliance Black to see what has changed. Also, you can hit Edit>Select>Current Scope ⌃⌥b inside of a string to select the contents only and then hit it again to select the quotes around it. Play around with the select current scope thing, it's fun. It really goes well with Balance Jr ;) (or vice versa)
Enjoy.
thomas Aylott—subtleGradient
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Jul 20, 2006, at 1:33 AM, Andreas Wahlin wrote:
Jumps up and down and can't get wait to get to work to try it out (ok, not really, but still)
btw, what sort of thing was moved into the javascript bundle, was it only language defititions?
Andreas
And a few snippets. The for snippet is handy if you do a lot of js loops. The settimeout (or whatever) one is extremely handy. Most of the time people tell you to use a string inside of settimeoue, but if you use the syntax in that snippet you can use regular old javascript like normal, just put it inside of the function and it'll get called. I based it off of what i saw used in the prototype library. If you use prototype, there's a modified version in there that adds .bind(this)
thomas Aylott—subtleGradient
If you use prototype, there's a modified version in there that adds .bind(this)
*cough* slightly off topic. The .bind(this) just makes the this keyword accessibly in the function that you bind it to, right? Sort of like passing it in as an argument when you call the function.
Andreas
On Jul 21, 2006, at 4:47 PM, Andreas Wahlin wrote:
If you use prototype, there's a modified version in there that adds .bind(this)
*cough* slightly off topic. The .bind(this) just makes the this keyword accessibly in the function that you bind it to, right? Sort of like passing it in as an argument when you call the function.
Andreas
.bind() replaces every use of "this" inside with a call to the object you put in the argument. Like so:
function(){ alert(this.thinggy); }.bind({thinggy: 'Howdy!!!'})
thomas Aylott—subtleGradient
That's a great fucking explanation. Thanks a bunch! I feel I owe some sort of tip here ... but I can't really .. oh, wait :) tip taken from http://www.dustindiaz.com/awkward-looking-javascript/ Since javascript functions are mainly variables (sort of), you can have a function that calls itself on initalisation, like
(function() { do_stuff; }());
this also works in json, so you can have immediately executing code returned from the server. This might not be good practice, but it sure shows how cool javascript is :)
sorry everyone for the OT stuff, but if you read this thread,hopefully your interested in some javascript voodoo anyway.
Andreas
On Jul 21, 2006, at 23:49 , thomas Aylott wrote:
On Jul 21, 2006, at 4:47 PM, Andreas Wahlin wrote:
If you use prototype, there's a modified version in there that adds .bind(this)
*cough* slightly off topic. The .bind(this) just makes the this keyword accessibly in the function that you bind it to, right? Sort of like passing it in as an argument when you call the function.
Andreas
.bind() replaces every use of "this" inside with a call to the object you put in the argument. Like so:
function(){ alert(this.thinggy); }.bind({thinggy: 'Howdy!!!'})
thomas Aylott—subtleGradient
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 22.07.2006, at 11:08, Andreas Wahlin wrote:
That's a great fucking explanation. Thanks a bunch! I feel I owe some sort of tip here ... but I can't really .. oh, wait :) tip taken from http://www.dustindiaz.com/awkward-looking-javascript/ Since javascript functions are mainly variables (sort of), you can have a function that calls itself on initalisation, like
…
And another one realizes that JS is a really nice little language, see [JavaScript: The World's Most Misunderstood Programming Language] [1]. And btw a ‘better’ explanation for `bind` is executing the function in the Context of a different Object, see `apply` and `call` [Mozilla Developer Center][2].
Soryu.
[1]: http://javascript.crockford.com/javascript.html [2]: http://developer.mozilla.org/en/docs/ Core_JavaScript_1.5_Reference:Global_Objects:Function#Methods
On Jul 22, 2006, at 7:02 AM, Soryu wrote:
And another one realizes that JS is a really nice little language
I was even able to program a fake Dekstop/Dock/Windows (at least if you are using Safari or Firefox): http://www.cocoabits.com/ index_osy.html
It isn't the worst as languages go...
Gerd
On Jul 16, 2006, at 11:51 AM, Andreas Wahlin wrote:
Yes, a suggestion. Don't know if you read the rails spinoff list, but this bundle was announced there as well, and it seems that the decision was made to turn all double-quotes into single-quotes for consistency with prototype and scriptaculous syntax.
Fixed
thomas Aylott—subtleGradient