Hello everyone. I want to be able to highlight a word in TextMate and do a Google search for it (primarily for looking up Rails API docs).
It seems to me that this feature is already implemented, but is not working for me. In Hyperlink Helper, I see the Yahoo searches and the one for "Lookup Selection on Google and Link". However, when I try this, I get:
"(this language is not supported, see … for more info)"
...replacing the highlighted text. (This is in a Ruby file if it makes a difference).
Is there some way I can fix this?
Thanks,
Craig
On Thu, Aug 13, 2009 at 10:16 PM, Craig Walkercraig@softcraft.ca wrote:
It seems to me that this feature is already implemented, but is not working for me. In Hyperlink Helper, I see the Yahoo searches and the one for "Lookup Selection on Google and Link".
This bundle command is used for inserting links into the document. To just use the selected text as a search you could do one of two things:
1. Assign a keyboard command (via system preferences) to the "Search With Google" item in the "Services" menu. This has the advantage of working in every app. 2. Create a command out of this: open http://www.google.com/search?q=%22%24TM_SELECTED_TEXT" / set the input to selected text or word, and discard the output.
Also, if you're looking up rails docs try selecting the word and hitting control-shift-H.
On Aug 14, 2009, at Aug 14, 2009 | 11:28 AM, Oliver Taylor wrote:
On Thu, Aug 13, 2009 at 10:16 PM, Craig Walkercraig@softcraft.ca wrote:
It seems to me that this feature is already implemented, but is not working for me. In Hyperlink Helper, I see the Yahoo searches and the one for "Lookup Selection on Google and Link".
This bundle command is used for inserting links into the document. To just use the selected text as a search you could do one of two things:
- Assign a keyboard command (via system preferences) to the "Search
With Google" item in the "Services" menu. This has the advantage of working in every app. 2. Create a command out of this: open http://www.google.com/search?q=%22%24TM_SELECTED_TEXT" / set the input to selected text or word, and discard the output.
Also, if you're looking up rails docs try selecting the word and hitting control-shift-H.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
You probably know about the "APIdock" bundle, but if not, it does something similar to what are mentioning.