Find/Replace in Selected Files

I was planning on posting some nice friendly post before getting into technical stuff, but Trey really wants me to post this. So, here’s a TextMate tip.

So, there you are, working on a project in TextMate. You have a project full of a gazillion files. Then, you notice that some text that appears in several files needs to be changed. You need to do a find/replace in those files, but you don’t want to do a “find in project” because it’ll take forever to go through all those files and change only the ones you want.

  1. Select the files you want to change.
  2. Drag them to the TextMate icon in the dock.
  3. Do a Find in Project.
  4. Save all files in project.
  5. Close the temporary project w/o saving.

The files I need to change are usually all in one folder. So, it’s really easy to drag a folder to the TextMate dock icon, do the stuff, and close.


comment feed And the ensuing discussion…

  1. 1

    Jan 6th, 2006 at 4:31 pm Trey Piepmeier

    Thanks, JJ!

  2. avatar
    2

    Now You



Additional Resources


Tumblelog

Tumblr

Tumblr

Delicious

Delicious

Instructional

Recent Instructional Articles

Global AJAX Cursor Change

06.01
0

Two snippets to let users know when your web app is busy AJAXing.

Rails Tip: Default Scope

04.11
1

An easy way to designate default options for find(:all)

A Smarter MAMP

22.10
20

Create a whole new site on your Mac just by creating a new folder thanks to BIND and Apache’s dynamic virtual hosts.

Editorial

Recent Editorial Articles

More Usable Mac: Finder Toolbar

05.12
3

I find it useful to keep a few extra items in my Finder toolbar.

No Multiple-Class Support in IE6

18.11
2

IE6 doesn’t respond to multiple class selectors.

New Skin for the Old Blogish

07.10
8

This blogish is finally back online after an extended period of http silence.

Downloadable

Recent Downloadable Articles

Leopard-Style iTerm Icon, Take 2

18.12
1

The newer, bluer version of the iTerm icon.

Leopard-Style iTerm Icon

05.12
2

An updated, Leopard-style icon for iTerm.

Quick Email Aliases on Media Temple

29.11
5

A script to create instant email aliases on a MT (dv) account

About This Site

About the Author

That’s me in the photo above. My current profession is web development. Therefore, it is the subject of this site.

Postpostmodern

Postpostmodern is the name of this site and my alias on most of the web. There's nothing really special about the name Postpostmodern. I studied art in college during the years after postmodernism, and nobody knew how else to classify the state of things other than silly words like postpostmodernism.

Sorta Blogish

I'd call this a blog, but I don't feel it fits the 'log' format. My goal is to publish articles on web-related topics that interest me, and while some articles may be time-sensitive, I would prefer that the organizational focus be on the categories and tags rather than chronology.

More Me

More about me can be found on the about page. Or, look me up in the usual places: