title: Omnibox API: Is there a way to inline autocomplete from history?
body: <p>In my example I want to make extension for easy redirection for subreddits at reddit.com. <a href="http://g.recordit.co/OBiXUIOm2r.gif" rel="nofollow">This</a> is what I have so far. However I would like to autocomplete from my history in omnibox, like those google search suggestions. For example if I type <strong>te</strong> to autocomplete <strong>tech</strong> inline and add suggestion underneath for <strong>technology</strong> and whatnot I have in my history that starts with "te". Is this even possible? If so can you point me in the right direction? </p>
  
  <p>This is my very simple code so far</p>
  
  <pre><code>function navigate(url) {
    chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
    chrome.tabs.update(tabs[0].id, {url: url});
    });
  }
  
  chrome.omnibox.onInputEntered.addListener(
    function(text) {
    if(text.indexOf(' ') == -1) {
    if(text.indexOf('/r/') == 0) {
      navigate("https://www.reddit.com" + text); }
      else if(text.indexOf('r/') == 0) {
      navigate("https://www.reddit.com/" + text); }
      else 
      navigate("https://www.reddit.com/r/" + text); 
    }
    });
  </code></pre>