Perhaps it doesn't exist or I don't know how but is it possible to search in a specific directory? I know you can search through a whole project. My project is huge and the searches take forever eventhough I usually know which directory I want to search in anyway. I wind up having to fire up another editor to search.
Any ideas?
thanks
Try dragging the folder of interest from the project pane to the textmate icon in the dock.
Then do a find in project.
peter
On 11/10/06, Jim Plush jiminoc@gmail.com wrote:
hi Dan, not sure I understand what you mean?
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
He means from a terminal use the mate application:
$ mate /your/project/directory/subdir/to/search
This will launch a new TM project bounded to the folder you specify. It's fun, really. ;)
Although, that's a pretty unixy -- a collection of intermixable tools -- answer. Probably not something I think everyone is looking for. Otherwise there wouldn't be all this recent complaining about TM's find/replace. Instead we'd all just be happily firing off combinations of awk|grep|find|perl|ruby|etc. Come to think of it, maybe that's why I've never noticed this 'deficiency'.
Corey
On Nov 10, 2006, at 2:45 PM, Jim Plush wrote:
hi Dan, not sure I understand what you mean?
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Quoting Corey Jewett ml@syntheticplayground.com:
He means from a terminal use the mate application:
$ mate /your/project/directory/subdir/to/search
[...]
I follow the hint within TM's help:
... Currently it is not possible to limit the scope of the search to anything other than all text files in the full project. As a workaround, when you want to search only a subset of your project, you can select the files [or folders] you want to search in the project drawer and drag the selection to the TextMate application icon to create a new scratch project. A find/replace can then be performed on that project, which can then be closed. ...
It works perfectly for me.
Cheers, Hans
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
all those solutions sound like a pain in the ass during my workflow. easier just to grep at that point. Surprised this isn't in text mate already. Seems like a no brainer. Anyone know if it will be added in the future?
On 11. Nov 2006, at 00:28, Jim Plush wrote:
all those solutions sound like a pain in the ass during my workflow. easier just to grep at that point.
Not sure you understood the suggestion. Select the folder you want to search in the project drawer, drag that to the TextMate application icon, and now use ⇧⌘F and enter search string + ↩.
If you do not like having to drag, you can make a command like this:
eval open -a TextMate "$TM_SELECTED_FILES"
That should open the selection (in the project drawer) as a new project.
Surprised this isn't in text mate already. Seems like a no brainer. Anyone know if it will be added in the future?
2.0 will see improved folder search, yes.