Read my latest article: Was away on vacation (posted Sun, 11 May 2008 22:33:00 GMT)

Wouldn't it be cool if it?...oh wait.. it already does 11

Posted by Robby Russell Tue, 24 Apr 2007 04:26:00 GMT

Working into the evening on a client project (been sick and trying to play catchup) and was chatting with Allison about working in views and dummy text. I said, “Just make that a shortcut in TextMate.”

Then I thought, “I can’t be the first person to think of that.”

...as I type, lorem [tab]

Figures. Lorem ipsum generator… in TextMate. Why didn’t I know about this before?

So, I ask all of you… what’s your favorite TextMate trick?

Lately… I’ve been enjoying running single spec files with [apple]-r.

Subscribe to my RSS feed Enjoying the content? Be sure to subscribe to my RSS feed.
Comments

Leave a response

  1. Avatar
    A. Roth Tue, 24 Apr 2007 05:11:17 GMT

    Good find… I can’t say I’m surprised it’s there, but I kinda am.

  2. Avatar
    sjs Tue, 24 Apr 2007 07:31:21 GMT

    I like using TextMate for getting a quick

    My favourite trick recently is a Ruby script that reads a C file from TextMate and parses comments for “args: foo blah” and “cc: gcc -Wall …” lines. It defaults to a basic gcc command and empty args. It’s good for quick C files, e.g. the examples in the K&R book. It saves the source in a temp location so anything with #include “something.h” won’t work. No need for a shell, just the familiar Cmd-R.

  3. Avatar
    sjs Tue, 24 Apr 2007 07:32:16 GMT

    A less than sign ate half my comment. :/ I’m going to sleep.

  4. Avatar
    noodl Tue, 24 Apr 2007 09:38:49 GMT

    Too many to mention, TextMate rocks. Anyway latest trick is ctrl-left/right, which is like option except it moves/selects underscored_word_parts and CamelCasesToo.

  5. Avatar
    Simone D. Tue, 24 Apr 2007 12:10:24 GMT

    I love the html generator … when i write RoR code the worst part is write html files … but with Textmate it’s so fast! :)

    Your lorem[tab] is in text bundle … you can also try c)[tab] (for add copyright line) ... i LOVE Textmate :)

    My favourite is [ctrl][shift]< while i’m writing RoR code it generates <= %> or <- -> or < %> :)

  6. Avatar
    noodl Tue, 24 Apr 2007 13:37:03 GMT

    Another useful tip is using the enter key in comments to start a new comment line. Works in the middle of a line too.

  7. Avatar
    Dave Tue, 24 Apr 2007 14:40:31 GMT

    I like to indulge in a nice pizza pie while coding sometimes. I set textmate up to show me all the local pizza joints in my area.

    “pizza[tab]” = displays pizza joint name and phone.

  8. Avatar
    Chris Cummer Tue, 24 Apr 2007 18:21:53 GMT

    Great tip! My favourite TextMate tip has got to be Ctrl-S for quick searching through a document.

    Is it wrong to love a piece of software?

  9. Avatar
    ed Tue, 24 Apr 2007 21:16:35 GMT

    hold OPTION and use the mouse to select text columns. you can delete the characters or replace them in bulk = nice!

    SHIFT+CMD+t to search through the method names in a ruby file (think that one’s in the SyncPeople rails bundle)

  10. Avatar
    david Wed, 25 Apr 2007 21:11:13 GMT

    i mostly use textmate to write C/C++ for school projects. i absolutely love the “once” tab trigger. it is a thing of beauty.

    ed: SHIFT+CMD+T works in any language, afaik

  11. Avatar
    Dustin Tinney Wed, 23 May 2007 19:07:47 GMT

    I’ve always been a fan of cut line – ctrl+shift+K paste bundle buffer – ctrl+y

Share your thoughts... (really...I want to hear them)

Comments