0

How do I change the default search location in Find (command-shift-F) for TextMate2? Right now it defaults to my home directory (which is almost never what I want), and I'd like it to search only the current files (as if you click the drop-down menu and select "Open Files") or projectDirectory.

ceiling cat
  • 5,501
  • 9
  • 38
  • 51

1 Answers1

1

Use this little arrow on the File Browser drawer to access the pictured menu, then select Use "____" as Project Folder. After that, Command+Shift+F should have this directory selected in the Find dialog.

Use "Blah" as Project Folder

Graham P Heath
  • 7,009
  • 3
  • 31
  • 45
  • Wow. This is one of the most unintuitive designs I have seen. 1) The directory (e.g., `grahamh` in your example) is displayed in the window; there is no reason to suspect that it's not the `Project Folder`. 2) `The Use "____" as Project Folder` item is already checked for me, but it works as you said after I click it. Then if I bring up the drop down menu again nothing in the UI indicates anything has changed (except that Find defaults to the project directory now). 3) The setting doesn't stick. Thanks for finding such an obscure work around! – ceiling cat May 29 '15 at 07:15
  • What do you mean the setting doesn't stick? Seems pretty solid to me. – Graham P Heath May 29 '15 at 15:25
  • Does adding `projectDirectory = '$CWD'` to a `.tm_properties` file located at the root of your project, or in your home directory make this behavior more inline with your expectations? I've had it for a while. – Graham P Heath Jun 17 '15 at 15:20
  • I have `projectDirectory = '$CWD'` in my home directory already. Didn't make a difference. – ceiling cat Jun 18 '15 at 08:16
  • Maybe try removing it from your home directory's version, and only include it at the base of your project? – Graham P Heath Jun 18 '15 at 15:32