I don't know if this has been suggested before, but I'd like to right click on a selection or an identifier (without having to double click it first) and choose "Find in Project" which would give search results in all files in a project (or a directory if I had opened one).
This would be great for quickly exploring code bases.
Is there a way to hook this up now given TextMate's flexibility and the existence of the Edit -> Find -> Find in Project ?
-Chuck
Chuck Esterbrook wrote:
I don't know if this has been suggested before, but I'd like to right click on a selection or an identifier (without having to double click it first) and choose "Find in Project" [...]
Is there a way to hook this up now given TextMate's flexibility and the existence of the Edit -> Find -> Find in Project ?
No, you can't add anything contextual menu. You could make a macro which would do the search for the current selection, and trigger with a keyboard shortcut, however.
On 25. Apr 2007, at 06:28, Chuck Esterbrook wrote:
I don't know if this has been suggested before, but I'd like to right click on a selection or an identifier (without having to double click it first) and choose "Find in Project" which would give search results in all files in a project (or a directory if I had opened one).
This would be great for quickly exploring code bases.
Is there a way to hook this up now given TextMate's flexibility and the existence of the Edit -> Find -> Find in Project ?
You would need to take the route of a custom command, see e.g. the Show TODO List command.
But, if you want to find the current selection in your project, the keyboard steps are:
1. ⌘E (copy selection to find clipboard) 2. ⇧⌘F (find in project) 3. ↩ (start the search)
On 4/25/07, Allan Odgaard throw-away-1@macromates.com wrote: ...
You would need to take the route of a custom command, see e.g. the Show TODO List command.
But, if you want to find the current selection in your project, the keyboard steps are:
- ⌘E (copy selection to find clipboard)
- ⇧⌘F (find in project)
- ↩ (start the search)
Thanks.