Balance Jr 2.0 for TextMate ScreenCast!

by Thomas Aylott Sat, 06 May 2006 19:40:00 GMT

The following is not exactly a transcript of the audio from my new Balance Jr 2.0 command screencast.

Balance Junior the 2nd Screencast

Balance Junior the 2nd Screencast

Download

tAylott_subtleGradient.tmbundle.zip

Or as always, you can grab all my stuff from my subversion repository. http://textmate.svn.subtlegradient.com/

Hello internet people

Thomas Aylott (aka subtleGradient) here to show you the latest edition of my Balance Jr command.

I noticed that there were a number of problems with the original that have always bugged me.

For example:

THIS ONE!!!! Where it selects the contents of string as well as the text between strings. Bleah, horrible.

Also, Duane Johnson released his snazzy Jump commands.

Here, have a goosee and the new regex. Note the lovely use of comments to disambiguate.

Let me show you a few things you can do with it.

Ok, there’s some HTML.

Balance Jr Foreword grabs stuff in big chunks When the caret is outside a tag it’ll grab the entire next tag. When the caret is INside a tag, it’ll grab the entire next attribute value pair, or whatever biggest thing it can get ahold of

Balance Jr Backwards is much more fine tuned As you can see.

for example, You can place the caret inside an html attribute’s value string, hit Balance Jr back and it selects the contents of the string, Hit it again and it’ll select outward until it grabs the entire tag.

ok! While we’re here…

Here’s my “add an HTML attribute” command. And Here’s Duane’s “Jump Next” command in action.

o…k

There are two built-in commands in the latest editions of TextMate EDIT/ SELECT/ “current scope” and EDIT/ SELECT/ “enclosing brackets”

note that both of these grab the brackets at the ends. While Balance Jr only grabs the innards!

Welp, that about wraps it up. goodnight everybody!

Read more…

6 comments | no trackbacks

How to Make Spotlight Be Fast Again

by Thomas Aylott Thu, 04 May 2006 17:01:00 GMT

I’ve been using Tiger since about an hour after it was released.

When I first got it, spotlight was a total gem. It was super quick and found things I never thought it could find.

I typed in my first daughters name and instantly got back all kinds of stuff including all of my most recent tax returns. When clicking on one of the tax returns it took me to her name listed as a dependent.

That’s just too cool.

It’s been a while since then now and spotlight has started to get extremely annoyingly slow and filled with total crap. No mater what I searched for I got back tons of source code files and bookmarks.

My wife uses my old iMac and it was still blazingly fast at spotlight. Much faster than my nice new -ish PowerBook 12.

I used to work at a place where I had just massive gobs of email that I needed to save for searching through later.

I’m thinking that spotlight still had the index of all that old stuff. I’m just guessing though.

I did this, and it made it fast again

  1. Open your spotlight prefs
  2. Choose the privacy tab
  3. Drag in your /Developer folder
  4. Drag in everything that you’ll never actually search for with spotlight
  5. Drag in all of your mounted Hard Drive volumes
  6. Log out or reset or something
  7. Log back in (doi)
  8. Open your spotlight prefs (again)
  9. Remove all the Hard Drive volumes
  10. Spotlight should start reindexing them shortly

As always, your milage may vary.

You might not have to log out or reboot. You might have to do it a couple times. I’m not sure.

Basically, the principal should be…

Don’t let spotlight see anything that you don’t want to search for

I know that that’s a pretty basic idea. But it just never occurred to me to actually think about it. Someone in the ##textmate irc channel clued me in. Thanks i-forget-your-name_!

1 comment | no trackbacks

How long have you been hooked on TextMate Crack Cereal? ;)

by Thomas Aylott Thu, 04 May 2006 15:24:00 GMT

TextMate serial cereal is like Crack!!!

Not that I would know about the crack ;)

Seriously, though. There’s not much point in cracking TextMate. Since you wouldn’t be able to participate in the TextMate community.

BTW. The TextMate Serial numbers are sequential and actually tell you how many people bought TextMate before you.

My serial number is…

Read more…

7 comments | no trackbacks

Older posts: 1 ... 5 6 7 8 9 ... 14