kswedberg / jquery-tmbundle

TextMate bundle for jQuery
http://www.learningjquery.com
561 stars 228 forks source link

changing scope selector #6

Closed pulse00 closed 13 years ago

pulse00 commented 14 years ago

i noticed that all snippets have the scope selector set to "source.js.jquery". When opening .js files, textmate does not provide those jquery snippets, unless i manually set the language to "jquery (Javascript)". Is this behavior intended, or is it possible to automatically use the jquery scope for .js files?

kswedberg commented 13 years ago

TextMate should remember your previous language choice the next time you open a .js file. So if you change it to jQuery (JavaScript) for one .js file, subsequent .js files should open with jQuery (JavaScript) when you open them.

luksak commented 13 years ago

i tried to change the scope to source.js. but if i open a .php file which contains JS TM crashes. would be nice to be able to use this bundle everywhere where i can use JS since all of my JS contains jQuery.