Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increasing the number of suggests shown in omnibox

Is it in anyway possible to increase the number of suggests that your extension may show in the omnibox?

By default it looks like 5 rows is the limit. I've read about a command line switch to change the number of rows (--omnibox-popup-count) but I am really interested in dynamically being able to set this in my extension.

5 rows isn't really enough for the information my extension want to show.

like image 210
Anton Johansson Avatar asked Jan 01 '12 18:01

Anton Johansson


People also ask

What can be entered in omnibox?

The omnibox API allows you to register a keyword with Google Chrome's address bar, which is also known as the omnibox.

How do I turn off Omnibox suggestions?

Scroll down and click on Show advanced Settings link. Under privacy section, untick the “Use a prediction service to help complete searches and URLs typed in the address bar” option. This will disable URL predictions and search suggestions in Omnibox.


2 Answers

[Update 2018 - thanx version365 & Aaron!]

» Not hardcoded anymore! chrome://flags/#omnibox-ui-max-autocomplete-matches . Credit goes to @version365 answering below: http://stackoverflow.com/a/47806290/234309 « – Aaron Thoma


..[historical] detail: since the removal of --omnibox-popup-count flag (http://codereview.chromium.org/2013008) in May 2010 the number [was] hardcoded:

const size_t AutocompleteResult::kMaxMatches = 6;

a discussion two years later on the chromium-discuss mailing list about the 'Omnibox default configuration' "concluded"

"On lower performing machines generating more result would slow down the result display. The current number look like a good balance."

[which is not a very valid argument, considering the probably infinitesimal overhead retrieving more items than the hard-wired number]

why the heck is there no chromium fork that removes stupid UX limitations like this (or the no tabbar in fullscreen mode)^^

like image 131
eMPee584 Avatar answered Jan 03 '23 06:01

eMPee584


Since there is no more --omnibox-popup-count flag; you can use another flag which is new.

chrome://flags/#omnibox-ui-max-autocomplete-matches lets you select a maximum of 12 rows.

like image 30
version365 Avatar answered Jan 03 '23 04:01

version365