Hi guys,
I downloaded the jQuery bundle from the repository, however, I'm not happy with a few things, and need to make local corrections.
One of those things is the default scope it gives it (source.js.jquery). Since jQuery is available in every JS file I am editing, is there a way to mass edit the entire bundles scope to be source.js ?
Every time I've manually gone through the bundle and edited the scope, every time I restart, it's back to being source.js.jquery.
Is there a way to mass edit the bundle scope, AND have it stick?
Thanks guys,
Why would you need or want to do that? Everything that works in js should also work in jQuery (not the other way around though), isn't it easier to just change language grammar for .js files to jQuery?
ph
On Jan 8, 2008, at 7:41 PM, Nate Cavanaugh wrote:
Hi guys,
I downloaded the jQuery bundle from the repository, however, I'm not happy with a few things, and need to make local corrections.
One of those things is the default scope it gives it (source.js.jquery). Since jQuery is available in every JS file I am editing, is there a way to mass edit the entire bundles scope to be source.js ?
Every time I've manually gone through the bundle and edited the scope, every time I restart, it's back to being source.js.jquery.
Is there a way to mass edit the bundle scope, AND have it stick?
Thanks guys,
View this message in context: http://www.nabble.com/Mass-editing-the-bundle-scope-tp14695883p14695883.html Sent from the textmate users mailing list archive at Nabble.com.
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 guess I could, but is there a way to do that so I don't have to manually change the scope every time I open a JS file?
I guess maybe I should outline my goal: I want it so that whenever I open a file with Javascript, I can just start using the snippets within the Javascript without having to worry about which scope I am currently in. Whether I can do this via setting all JS files to open with the language grammar set to jQuery, or mass editing the bundle, either will work for me, but I just want the one with the least amount of repetition :)
Thanks for the help,
Peter Haza wrote:
Why would you need or want to do that? Everything that works in js should also work in jQuery (not the other way around though), isn't it easier to just change language grammar for .js files to jQuery?
ph
On Jan 8, 2008, at 7:41 PM, Nate Cavanaugh wrote:
Hi guys,
I downloaded the jQuery bundle from the repository, however, I'm not happy with a few things, and need to make local corrections.
One of those things is the default scope it gives it (source.js.jquery). Since jQuery is available in every JS file I am editing, is there a way to mass edit the entire bundles scope to be source.js ?
Every time I've manually gone through the bundle and edited the scope, every time I restart, it's back to being source.js.jquery.
Is there a way to mass edit the bundle scope, AND have it stick?
Thanks guys,
View this message in context: http://www.nabble.com/Mass-editing-the-bundle-scope-tp14695883p14695883.html Sent from the textmate users mailing list archive at Nabble.com.
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
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
Isn't it just this the opposite thing you struggled with in jsp/css? I think if you open a js file and change the language grammar to jQuery, it should remember for all js files?
ph
On Jan 8, 2008, at 7:58 PM, Nate Cavanaugh wrote:
I guess I could, but is there a way to do that so I don't have to manually change the scope every time I open a JS file?
I guess maybe I should outline my goal: I want it so that whenever I open a file with Javascript, I can just start using the snippets within the Javascript without having to worry about which scope I am currently in. Whether I can do this via setting all JS files to open with the language grammar set to jQuery, or mass editing the bundle, either will work for me, but I just want the one with the least amount of repetition :)
Thanks for the help,
Peter Haza wrote:
Why would you need or want to do that? Everything that works in js should also work in jQuery (not the other way around though), isn't it easier to just change language grammar for .js files to jQuery?
ph
On Jan 8, 2008, at 7:41 PM, Nate Cavanaugh wrote:
Hi guys,
I downloaded the jQuery bundle from the repository, however, I'm not happy with a few things, and need to make local corrections.
One of those things is the default scope it gives it (source.js.jquery). Since jQuery is available in every JS file I am editing, is there a way to mass edit the entire bundles scope to be source.js ?
Every time I've manually gone through the bundle and edited the scope, every time I restart, it's back to being source.js.jquery.
Is there a way to mass edit the bundle scope, AND have it stick?
Thanks guys,
View this message in context: http://www.nabble.com/Mass-editing-the-bundle-scope-tp14695883p14695883.html Sent from the textmate users mailing list archive at Nabble.com.
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
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
-- View this message in context: http://www.nabble.com/Mass-editing-the-bundle-scope-tp14695883p14696386.html Sent from the textmate users mailing list archive at Nabble.com.
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
Ah, very true, so I guess I misspoke a bit on exactly what I needed. That works great for pure JS files.
I suppose what I need is for the language scope to be the same for embedded JS as well, not just solely JS files.
However, changing the language of doesn't seem to apply on a language by language basis, hence my desire to edit the bundle.
But that's why I'm asking you guys :)
Is there a way to accomplish this for embedded JS as well as JS files?
Peter Haza wrote:
Isn't it just this the opposite thing you struggled with in jsp/css? I think if you open a js file and change the language grammar to jQuery, it should remember for all js files?
ph
On Jan 8, 2008, at 7:58 PM, Nate Cavanaugh wrote:
I guess I could, but is there a way to do that so I don't have to manually change the scope every time I open a JS file?
I guess maybe I should outline my goal: I want it so that whenever I open a file with Javascript, I can just start using the snippets within the Javascript without having to worry about which scope I am currently in. Whether I can do this via setting all JS files to open with the language grammar set to jQuery, or mass editing the bundle, either will work for me, but I just want the one with the least amount of repetition :)
Thanks for the help,
Peter Haza wrote:
Why would you need or want to do that? Everything that works in js should also work in jQuery (not the other way around though), isn't it easier to just change language grammar for .js files to jQuery?
ph
On Jan 8, 2008, at 7:41 PM, Nate Cavanaugh wrote:
Hi guys,
I downloaded the jQuery bundle from the repository, however, I'm not happy with a few things, and need to make local corrections.
One of those things is the default scope it gives it (source.js.jquery). Since jQuery is available in every JS file I am editing, is there a way to mass edit the entire bundles scope to be source.js ?
Every time I've manually gone through the bundle and edited the scope, every time I restart, it's back to being source.js.jquery.
Is there a way to mass edit the bundle scope, AND have it stick?
Thanks guys,
View this message in context: http://www.nabble.com/Mass-editing-the-bundle-scope-tp14695883p14695883.html Sent from the textmate users mailing list archive at Nabble.com.
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
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
-- View this message in context: http://www.nabble.com/Mass-editing-the-bundle-scope-tp14695883p14696386.html Sent from the textmate users mailing list archive at Nabble.com.
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
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 Jan 8, 2008, at 2:19 PM, Nate Cavanaugh wrote:
Ah, very true, so I guess I misspoke a bit on exactly what I needed. That works great for pure JS files.
I suppose what I need is for the language scope to be the same for embedded JS as well, not just solely JS files.
However, changing the language of doesn't seem to apply on a language by language basis, hence my desire to edit the bundle.
But that's why I'm asking you guys :)
Is there a way to accomplish this for embedded JS as well as JS files?
The current version of TextMate 1.5.x simply cannot technically handle too many levels of embedded languages.
jQuery doesn't know how it is embedded into something else. Every language that embeds Javascript would need to be changed to embed jQuery instead of javascript.
Many library syntaxes like jQuery aren't written to easily allow themselves to be embedded inside another language. I'm currently working on revamping how all the Javascript syntaxes embed eachother and inherit and whatnot.
Try making a copy of the main syntax that is embedding javascript (EG: HTML) and then change it to embed jQuery instead. It probably will make a terrible mess and won't work at first, but you might just get it working eventually. I have quite a number of modified HTML syntaxes for embedding different things in different ways.
—Thomas Aylott – subtleGradient—
So just to confirm, that's the only option? There's no way to mass edit a bundle's scope and have it stick?
Thomas Aylott - subtleGradient wrote:
On Jan 8, 2008, at 2:19 PM, Nate Cavanaugh wrote:
Ah, very true, so I guess I misspoke a bit on exactly what I needed. That works great for pure JS files.
I suppose what I need is for the language scope to be the same for embedded JS as well, not just solely JS files.
However, changing the language of doesn't seem to apply on a language by language basis, hence my desire to edit the bundle.
But that's why I'm asking you guys :)
Is there a way to accomplish this for embedded JS as well as JS files?
The current version of TextMate 1.5.x simply cannot technically handle too many levels of embedded languages.
jQuery doesn't know how it is embedded into something else. Every language that embeds Javascript would need to be changed to embed jQuery instead of javascript.
Many library syntaxes like jQuery aren't written to easily allow themselves to be embedded inside another language. I'm currently working on revamping how all the Javascript syntaxes embed eachother and inherit and whatnot.
Try making a copy of the main syntax that is embedding javascript (EG: HTML) and then change it to embed jQuery instead. It probably will make a terrible mess and won't work at first, but you might just get it working eventually. I have quite a number of modified HTML syntaxes for embedding different things in different ways.
—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
Of course you can mass edit a bundle's scope, just open the bundle in the bundle editor and do a global search and replace. BUT, this is not your problem. Your problem is that other bundles include the javascript bundle, and you want them instead to include your bundle, so normally you would have to change that bundle.
I suppose what you can do is rename the javascript bundle into source.js.old, make jQuery into source.js, and have it include source.js.old. Would that work I wonder?
Or you could just modify the javascript bundle to include jQuery, if that's really what you always use (far from ideal, I know).
Haris Skiadas Department of Mathematics and Computer Science Hanover College
On Jan 8, 2008, at 5:18 PM, Nate Cavanaugh wrote:
So just to confirm, that's the only option? There's no way to mass edit a bundle's scope and have it stick?
Thomas Aylott - subtleGradient wrote:
On Jan 8, 2008, at 2:19 PM, Nate Cavanaugh wrote:
Ah, very true, so I guess I misspoke a bit on exactly what I needed. That works great for pure JS files.
I suppose what I need is for the language scope to be the same for embedded JS as well, not just solely JS files.
However, changing the language of doesn't seem to apply on a language by language basis, hence my desire to edit the bundle.
But that's why I'm asking you guys :)
Is there a way to accomplish this for embedded JS as well as JS files?
The current version of TextMate 1.5.x simply cannot technically handle too many levels of embedded languages.
jQuery doesn't know how it is embedded into something else. Every language that embeds Javascript would need to be changed to embed jQuery instead of javascript.
Many library syntaxes like jQuery aren't written to easily allow themselves to be embedded inside another language. I'm currently working on revamping how all the Javascript syntaxes embed eachother and inherit and whatnot.
Try making a copy of the main syntax that is embedding javascript (EG: HTML) and then change it to embed jQuery instead. It probably will make a terrible mess and won't work at first, but you might just get it working eventually. I have quite a number of modified HTML syntaxes for embedding different things in different ways.
—Thomas Aylott – subtleGradient—
Not in this instance since jQuery includes javascript. You'd have to modify the scope of the js syntax, then modify every mention of that scope inside jquery. Then even if you did get it working there would probly be issues with jquery embedding itself or the $base scope.
Warning: thar be dragons
On Jan 8, 2008, at 5:18 PM, Nate Cavanaugh wrote:
So just to confirm, that's the only option? There's no way to mass edit a bundle's scope and have it stick?
Well, I'm only really using the snippets, and don't really care too much about the other stuff, however, there are quite a few snippets. I would love to be able to just mass change (or quickly change) every snippets selector from source.js.jquery to source.js. I'm not too concerned about it being in the same scope as the rest of the javascript.
Thomas Aylott - subtleGradient wrote:
Not in this instance since jQuery includes javascript. You'd have to modify the scope of the js syntax, then modify every mention of that scope inside jquery. Then even if you did get it working there would probly be issues with jquery embedding itself or the $base scope.
Warning: thar be dragons
On Jan 8, 2008, at 5:18 PM, Nate Cavanaugh wrote:
So just to confirm, that's the only option? There's no way to mass edit a bundle's scope and have it stick?
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
Ok, in that case navigate from the terminal to the jquery language, and do "mate Snippets" to open the Snippets subfolder in TM. Then do a project search and replace for source.js.jquery.
Haris Skiadas Department of Mathematics and Computer Science Hanover College
On Jan 8, 2008, at 5:56 PM, Nate Cavanaugh wrote:
Well, I'm only really using the snippets, and don't really care too much about the other stuff, however, there are quite a few snippets. I would love to be able to just mass change (or quickly change) every snippets selector from source.js.jquery to source.js. I'm not too concerned about it being in the same scope as the rest of the javascript.
Thomas Aylott - subtleGradient wrote:
Not in this instance since jQuery includes javascript. You'd have to modify the scope of the js syntax, then modify every mention of that scope inside jquery. Then even if you did get it working there would probly be issues with jquery embedding itself or the $base scope.
Warning: thar be dragons
On Jan 8, 2008, at 5:18 PM, Nate Cavanaugh wrote:
So just to confirm, that's the only option? There's no way to mass edit a bundle's scope and have it stick?
Just be sure to reload your bundles afterward.
On Jan 8, 2008, at 6:03 PM, Charilaos Skiadas wrote:
Ok, in that case navigate from the terminal to the jquery language, and do "mate Snippets" to open the Snippets subfolder in TM. Then do a project search and replace for source.js.jquery.
Haris Skiadas Department of Mathematics and Computer Science Hanover College
On Jan 8, 2008, at 5:56 PM, Nate Cavanaugh wrote:
Well, I'm only really using the snippets, and don't really care too much about the other stuff, however, there are quite a few snippets. I would love to be able to just mass change (or quickly change) every snippets selector from source.js.jquery to source.js. I'm not too concerned about it being in the same scope as the rest of the javascript.
Thomas Aylott - subtleGradient wrote:
Not in this instance since jQuery includes javascript. You'd have to modify the scope of the js syntax, then modify every mention of that scope inside jquery. Then even if you did get it working there would probly be issues with jquery embedding itself or the $base scope.
Warning: thar be dragons
On Jan 8, 2008, at 5:18 PM, Nate Cavanaugh wrote:
So just to confirm, that's the only option? There's no way to mass edit a bundle's scope and have it stick?
Awesome, that did it for me. Thanks a lot :)
Charilaos Skiadas-3 wrote:
Ok, in that case navigate from the terminal to the jquery language, and do "mate Snippets" to open the Snippets subfolder in TM. Then do a project search and replace for source.js.jquery.
Haris Skiadas Department of Mathematics and Computer Science Hanover College
On Jan 8, 2008, at 5:56 PM, Nate Cavanaugh wrote:
Well, I'm only really using the snippets, and don't really care too much about the other stuff, however, there are quite a few snippets. I would love to be able to just mass change (or quickly change) every snippets selector from source.js.jquery to source.js. I'm not too concerned about it being in the same scope as the rest of the javascript.
Thomas Aylott - subtleGradient wrote:
Not in this instance since jQuery includes javascript. You'd have to modify the scope of the js syntax, then modify every mention of that scope inside jquery. Then even if you did get it working there would probly be issues with jquery embedding itself or the $base scope.
Warning: thar be dragons
On Jan 8, 2008, at 5:18 PM, Nate Cavanaugh wrote:
So just to confirm, that's the only option? There's no way to mass edit a bundle's scope and have it stick?
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