Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome extension using multiple omnibox keywords

i am trying to create a Google Chrome extension and i want it to listen to multiple keywords from the Omnibox. To make it short, i want to know whether these two things are possible:

  • defining multiple omnibox keywords for one extension in the manifest file
  • letting chrome.omnibox.onInputEntered and other events know what keyword is enabled

thanks in advance.

like image 572
Jacer Omri Avatar asked Jul 24 '13 06:07

Jacer Omri


People also ask

What is the correct search string that can be entered into an omnibox?

Quick Search In Chrome Web Store Once installed, you can search for any Chrome app, extension, or theme right from the Omnibox. Just type “ws”, press tab, and then enter your search query. Your Chrome Web Store results will appear in the current tab.

What is the Omnibar in Chrome?

The bar at the top of Chrome is called the omnibox (or Omnibar). It combines your regular address bar and the Google search box into one area in your browser. It's a powerful tool that can be used in a variety of ways. These tricks can be done on computers, iPads and other personal devices.

What is Omni box?

What is the Omnibox. It is what you see as the search box on the Chrome browser, but more technically the Omnibox is an API method that allows you to register a keyword with Google Chrome's address bar.


1 Answers

No, the Chromium developers have made it clear that they will not support multiple omnibox keywords for extensions:

My take on this is that an omnibox keyword is a UI surface, like a page/browser action. We limit extensions to 1 UI surface to avoid adding clutter. Given that, I don't think we should implement this.

Granted, this bug asks for both the ability to define multiple keywords and dynamically change those keywords on the fly. However, the developer response seems opposed to multiple keywords in general.

The same response suggests an alternative:

The keyword is meant to act as a prefix for your extension, so rather than having N keywords, how about 1 keyword that accepts N commands?

Instead of supporting both keyword1 something and keyword2 something, you can use masterkeyword keyword1 something and masterkeyword keyword2 something.

like image 191
apsillers Avatar answered Sep 21 '22 08:09

apsillers