FindInProject

Troubleshooting.FindInProject History

Hide minor edits - Show changes to markup

April 22, 2010, at 17:18 UTC by drd - add note about AckMate
Added lines 33-36:
  • Q.** Are there any faster alternatives?
  • A.** One option is the AckMate plugin, by [Trevor Squires](http://github.com/protocool/). It is not intended for replacing text, but is much faster than Find-in-Project for searches. The latest version should be at [the GitHub Downloads page](http://github.com/protocool/AckMate/downloads). Be sure to read the [project wiki](http://wiki.github.com/protocool/AckMate/) for important configuration instructions.
May 02, 2008, at 19:12 UTC by Allan Odgaard - Remove (:markdown:)
Deleted lines 0-1:

(:markdown:)

Deleted lines 32-34:

(:markdownend:)

July 03, 2007, at 07:10 UTC by Allan Odgaard -
Changed lines 5-6 from:
  • A.** Most likely this is caused by a corrupt font cache. When TextMate displays the results the font cache is involved and this is known to cause serious problems for at least MBP owners. See [FontCorruption](../FontCorruption) for a workaround.
to:
  • A.** Most likely this is caused by a corrupt font cache. When TextMate displays the results the font cache is involved and this is known to cause serious problems for at least MBP owners. See [FontCorruption](FontCorruption) for a workaround.
July 03, 2007, at 07:10 UTC by Allan Odgaard -
Changed lines 5-10 from:
  • A.** Most likely this is caused by a corrupt font cache. When TextMate displays the results the font cache is involved and this is known to cause serious problems for at least MBP owners. The workaround is to flush the font cache **and reboot** the machine (yes, a reboot unfortunately seems to be necessary.)

To flush the cache run the following line in your shell (double check the line before you run it as it will remove the given directory and all files it contains):

    sudo rm -rf /Library/Caches/com.apple.ATS
to:
  • A.** Most likely this is caused by a corrupt font cache. When TextMate displays the results the font cache is involved and this is known to cause serious problems for at least MBP owners. See [FontCorruption](../FontCorruption) for a workaround.
July 07, 2006, at 19:01 UTC by Allan Odgaard -
Changed lines 5-6 from:
  • A.** Most likely this is caused by a corrupt font cache. When TextMate displays the results the font cache is involved and this is known to cause serious problems for at least MBP owners. The workaround is to flush the font cache and reboot the machine (yes, a reboot unfortunately seems to be necessary.)
to:
  • A.** Most likely this is caused by a corrupt font cache. When TextMate displays the results the font cache is involved and this is known to cause serious problems for at least MBP owners. The workaround is to flush the font cache **and reboot** the machine (yes, a reboot unfortunately seems to be necessary.)
July 07, 2006, at 18:42 UTC by Allan Odgaard -
Added lines 1-41:

(:markdown:)

  • Q.** Find in Project takes down the entire machine and crashes (MBP.)
  • A.** Most likely this is caused by a corrupt font cache. When TextMate displays the results the font cache is involved and this is known to cause serious problems for at least MBP owners. The workaround is to flush the font cache and reboot the machine (yes, a reboot unfortunately seems to be necessary.)

To flush the cache run the following line in your shell (double check the line before you run it as it will remove the given directory and all files it contains):

    sudo rm -rf /Library/Caches/com.apple.ATS

- - -

  • Q.** How can I improve Find in Project performance?
  • A.** Reduce the number of files searched. There are two ways to do that:

1. **Exclude binary file types.** Out-of-the-box TextMate doesn’t know about binary file types, so each time it sees an unknown file extension, it will test if this file appears to be text or binary. To educate TextMate about the state of a given extension you can locate a file with such extension in the project drawer, then bring up the action menu (clicking the gear button in the project drawer or right-click/control-click the file) and select first *Treat Files With “.«ext»” Extension as Text* and then select it again (to switch it back to binary.)

2. **Exclude folders with irrelevant files (e.g. a cache folder).** This can be done by [editing the file and folder reference patterns](http://macromates.com/textmate/manual/working_with_multiple_files#filtering_unwanted_files).

- - -

  • Q.** How can I limit the search to a specific folder?
  • A.** This will require creating a new project based only on that folder. A way to do that is to drag the folder from the project drawer and onto the TextMate application icon.

- - -

  • Q.** How can I limit the search to a particular file type?
  • A.** This is only possible by creating a project consisting of files of this type. If you have installed the [mate shell command](http://macromates.com/textmate/manual/using_textmate_from_terminal#shell_terminal) then you can create ad hoc projects like this:
    cd «project folder»
    find . -name '.svn' -prune -or -name '*.php' -print0|xargs -0 mate

This constructs a project consisting of only PHP files. It will skip over the special `.svn` folders.

- - -

(:markdownend:)