Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

enable pressing tab to search in google chrome on my website [duplicate]

Possible Duplicate:
How to add google chrome omnibox-search support for your site?

I have a question about how to enable the "press tab to search" feature in google chrome for my own website.

I already linked an opensearch.xml document and I have the following included:

<Url type="text/html" template="http://localhost:3000/?search={searchTerms}"/>

However this still doesnt work. Am I doing something wrong?

Thanks!

like image 526
chourobin Avatar asked Sep 12 '11 11:09

chourobin


People also ask

How do I get rid of duplicate tabs in Chrome?

The hotkey Alt + Shift + W will close all duplicate tabs in one go. The shortcut isn't customizable. Speaking of which, you can always use the undo close tab shortcut in Chrome/Firefox (Ctrl + shift + T) to get your tabs back in case you closed something by mistake.

How do I open the same tab multiple times in Chrome?

First, use the Alt+D shortcut key sequence to move the focus to the location bar… and keep the Alt key held down. Now simply hit the Enter key (since you've got the Alt key held down). This will open up the current URL into a new tab, basically duplicating the tab.


1 Answers

Here is opensearch.xml example that works for me:

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
    <ShortName>Example.com</ShortName>
    <LongName>Example.com Search</LongName>
    <Description>Search through Example.com</Description>
    <Query role="example" searchTerms="example search"/>
    <InputEncoding>UTF-8</InputEncoding>
    <OutputEncoding>UTF-8</OutputEncoding>
    <AdultContent>false</AdultContent>
    <Language>en-us</Language>
    <SyndicationRight>open</SyndicationRight>
    <Developer>Example.com</Developer>
    <Tags>tag1,tag2</Tags>
    <Image height="16" width="16" type="image/vnd.microsoft.icon">http://example.com/favicon.ico</Image>
    <Url type="text/html" template="http://example.com/search.html?q={searchTerms}"/>
    <Url type="application/x-suggestions+json" template="http://example.com/suggestions.html?query={searchTerms}"/>
</OpenSearchDescription>

I think localhost and/or non-standard port 3000 might also contribute to the problem.

like image 137
serg Avatar answered Oct 13 '22 10:10

serg