Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

One thing that's really bugged me since switching to Chrome is that Ctrl + F behaves slightly differently from Firefox.

In Firefox, if you have text highlighted and hit Ctrl + F, it'll start finding with that text.

Is there any way of getting Chrome to do this?

share|improve this question

3 Answers 3

This issue was once raised in Chrome and is documented in :
Issue 6356004: If the user selects text in the current tab, and types CTRL-F,... (Closed)

In this Issue article, six successive patches were applied to Chrome to enable this functionality. However, because of too numerous unsolved issues, such as line breaks and other characters that can't be printed in the find box, the developer Simon Morris has given up and concluded :

Besides these issues, this behavior just doesn't feel terribly compelling when testing it. Perhaps I'm too used to the existing Chrome behavior, but while I expect prepopulation based on previous search strings in this or other tabs, I don't really expect selecting text to change my search string, and it doesn't feel terribly hard to sandwich the ctrl-f in a ctrl-c/ctrl-v pair to be explicit, given that I've just selected what I want to search for.

Since Ben already voted against this and the above testing doesn't give me strong counterarguments, I'm going ahead and closing.

I see this as pure laziness, as this problem and others were easily solved in other browsers. I have also searched but not found any Chrome extension that solves the problem.

The only solution I can therefore suggest, is to use a keyboard macro bound to a hotkey to issue the series of "Ctrl+C Ctrl+F Ctrl+V".

If you are on Windows you can use a Autohotkey script for this.
See this thread for an example : Chrome extension for highlight+find prepopulate?

An Autohotkey script can also be bound to a given process or window, so one can further fine-tune this script to apply only to Chrome.

If you are on Linux, you can use this port of Autohotkey : IronAHK, which runs on .NET or Mono for Linux/Mac. This article might be useful : Install IronAHK on Linux.

share|improve this answer
    
Thanks!! I was looking for a plugin, but autohotkey should work. But i need it on linux too. Anyway will award you bounty if no one else gives an answer with settings in chrome or a plugin. –  nandeesh Sep 8 '12 at 2:46
    
There exists a port of Autohotkey to Linux. See my addition at the end. –  harrymc Sep 8 '12 at 6:40
    
Shame on Chrome for not providing this! –  Mr. Roland Nov 10 at 17:21

If you really crave for that behavior, get Autohotkey and write this script:

~^f::
SetTitleMatchMode 2
IfWinActive, Google Chrome
{
Send, ^c
Send, {F3}
Send, ^v
Send ^a
return
}
else
{
Send ^f
return
}
share|improve this answer

I use Ctrl+C, Ctrl+F, Ctrl+V - at least they are close together on the keyboard and reasonably quick to type.

share|improve this answer
1  
Ctrl can be even pressed down the whole time. –  Daniel Beck Apr 10 '11 at 11:43
    
@Daniel Beck: yes that's what I do, I just thought it clearer to spell out that Ctrl is needed for the last two keys as well as the first. –  Hugh Allen Apr 11 '11 at 2:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.