Check out the ScreenCast! http://subtlegradient.com/articles/2006/02/05/my_textmate_bundles_etc
Trust me, you'll hate it ;)
On Feb 5, 2006, at 11:34 AM, Charilaos Skiadas wrote:
On Feb 5, 2006, at 11:55 AM, thomas Aylott wrote:
Trust me, you'll hate it ;)
I loved it! Thanks, awesome macro. I wonder how it will work in LaTeX...
It seems to work great in LaTeX. Really handy! Thanks much, Thomas.
-Alan
I... loved it ;)
I wish more people would do them about interesting features... I discover stuff I didn't know about every few days (aka, subversion... damn you guys rock)
Eric Coleman
On Feb 5, 2006, at 1:43 PM, Alan Schussman wrote:
On Feb 5, 2006, at 11:34 AM, Charilaos Skiadas wrote:
On Feb 5, 2006, at 11:55 AM, thomas Aylott wrote:
Trust me, you'll hate it ;)
I loved it! Thanks, awesome macro. I wonder how it will work in LaTeX...
It seems to work great in LaTeX. Really handy! Thanks much, Thomas.
-Alan
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
Can someone give me a quick a-b-c of how I can get this great looking macro from that site Into my copy of TextMate?
Thanks!
Sean
On Feb 6, 2006, at 4:14 AM, Eric Coleman wrote:
I... loved it ;)
I wish more people would do them about interesting features... I discover stuff I didn't know about every few days (aka, subversion... damn you guys rock)
Eric Coleman
On Feb 5, 2006, at 1:43 PM, Alan Schussman wrote:
On Feb 5, 2006, at 11:34 AM, Charilaos Skiadas wrote:
On Feb 5, 2006, at 11:55 AM, thomas Aylott wrote:
Trust me, you'll hate it ;)
I loved it! Thanks, awesome macro. I wonder how it will work in LaTeX...
It seems to work great in LaTeX. Really handy! Thanks much, Thomas.
-Alan
_ 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
:::: DataFly.Net :::: Complete Web Services http://www.datafly.net
On Feb 5, 2006, at 11:37 PM, Sean Schertell wrote:
Can someone give me a quick a-b-c of how I can get this great looking macro from that site Into my copy of TextMate?
It's easy as 1-2-3: 1. Download the file titled x51.tmbundle (http:// textmate.svn.subtlegradient.com/trunk/Bundles/x51.tmbundle/) that is situated at the bottom of that page. 2. Double-click on the downloaded file. 3. Ok, I lied, there is no part 3. Now the bundle is installed and you can remove the commands you don't need!
Thanks!
Enjoy!
Sean
Haris
On Feb 6, 2006, at 12:00 AM, Charilaos Skiadas wrote:
On Feb 5, 2006, at 11:37 PM, Sean Schertell wrote:
Can someone give me a quick a-b-c of how I can get this great looking macro from that site Into my copy of TextMate?
Hm, it seems I responded too quickly. The link will not take you to a downloadable file any more (Thomas, I personally find the svn method a lot less convenient). Just pick the files you like from http://textmate.svn.subtlegradient.com/trunk/Bundles/x51.tmbundle/ Macros/ (The top two are the ones you are looking for), and store them in some bundle in ~/Library/Application Support/TextMate/Bundles/ YourCustombundle.tmbundle/Macros/
If you try to use Finder for this instead of the terminal, you would need to control-click the bundle and select "view bundle contents" to find the Macros directory. If you don't have your own custom bundle yet, time to create one!
Haris
It wasn't meant to be convienient for you. ;)
I'm delighted / surprised anybody even wants the thing. And yet, still, I'm the only person to comment on my own blog, how sad is that? :'(
It's pretty cool, though. Dreamhost gives you instant subversion server creation powers now. I guess I was drunk with power. POWER!!!!! ha ha ha! My home folder is in SUBVERSION!!!! I'm going to put my dog into subversion as a puppy and never commit the changes!!! woo hoo!!!
Ok, I'm over my power trip now.
I'll put the zip back up of the good parts version. A 'stable' release. :D
But the zip file will be in subversion!!! ha ha!
On Feb 6, 2006, at 1:05 AM, Charilaos Skiadas wrote:
(Thomas, I personally find the svn method a lot less convenient)
It would also be nice with some explanations for your JavaScript bundles and so on on that page :) And I also like the x51-something bundle a lot!
Andreas
Howdy.
The whole porpoise behind the javascript bundles is to add better code folding and nested bracket scopes.
I use the JavaScript bracketed proto language which calls my modified version of the Prototype language (Prototype and Scriptaculous Mod) which calls the Javascript language.
The practical upshot of all that is that I can give each level of a nest of brackets a slightly darker background color (As seen in the javascript section of the screecast using the iLife 05 2 theme) and I can keep the curly brackets on the same line as the function or whatever and still be able to fold the section.
Using the Prototype JS language from encytemedia adds some nice scopes to prototype specific words. Also, the MochiKit (js) language does the same thing for MochiKit DOM function names and I have the MochiKit HELP command to look up their functions in a TextMate HTML window from the API description.
The normal JS language uses: foldingStartMarker = '^.*\bfunction\s*(\w+\s*)?([^)]*)(\s*{[^}] *)?\s*$'; foldingStopMarker = '^\s*}';
My version uses: foldingStartMarker = '(^.*{[^}]*$|^.*([^)]*$|^.*/*(?!.**/).*$)'; foldingStopMarker = '(^\s*}|^\s*)|^(?!.*/*).**/)';
You can really see the difference on files like the MochiKit 1.2 : PACKED VERSION where nothing is tabbed properly, because of being compressed. Personally, I find having the opening curly bracket on the next line after the function to be truly horrible and unreadable, but that's just me. ;)
The slightly darker nested brackets are surprisingly addictive. I did it once, just to see what it would look like & if I could even do it, but now I just can't work in any deeply nested language without it. I used to have to think hard and pay attention to what level of the nest i'm in, but now I never don't know. The normal balance command is also totally invaluable (if only it worked on nested html/xml tags, too).
It's not uncommon to see scopes like "source.js.bracketed.prototype meta.round-brackets.round meta.round-brackets.curly meta.round- brackets.curly meta.round-brackets.curly meta.round-brackets.curly meta.round-brackets.curly meta.round-brackets.round" using my version where the official js version just lists it as "source.js".
I know I should totally change the scope name from meta.round- brackets.round & …curly. But i'd have to change every bundle that uses it and every theme that uses it and I just haven't gotten around (or curly ;) ) to doing it yet.
Anybody have any suggestions on how I should name that? Should it even start with 'meta'?
Now that I have all this, I secretly wish more languages used curly brackets.
Thanks. (boy did I honk on for a while, huh) PS: Yes, porpoise != purpose, that was merely for comedic effect. ;)
I've been trying to adapt the nested scopes thing to ruby's do…end, if…end, etc… But then I lose the scope for the words themselves.
On Feb 6, 2006, at 4:55 AM, Andreas Wahlin wrote:
It would also be nice with some explanations for your JavaScript bundles and so on on that page :) And I also like the x51-something bundle a lot!
Andreas