Skip to content

Implements #22 “Turn URL bar into omnibox”#42

Merged
stakes merged 1 commit intostakes:masterfrom
jaanus:omnibox
Jun 21, 2015
Merged

Implements #22 “Turn URL bar into omnibox”#42
stakes merged 1 commit intostakes:masterfrom
jaanus:omnibox

Conversation

@jaanus
Copy link
Contributor

@jaanus jaanus commented Jun 14, 2015

This PR adds Omnibox support to Frameless. There’s a few pieces.

New UI in settings

There’s new UI to configure your search engine. DuckDuckGo is default, Google is also supported. Since there’s now navigation in Settings, I contained Settings in a real navigation controller (the previous solution had just a navigation bar, but didn’t actually support navigation).

ios simulator screen shot 14 06 2015 14 37 26

ios simulator screen shot 14 06 2015 14 37 29

Search/URL detection

The actual UI for searching is simple. You enter stuff in the omnibox. If it looks like a URL, it’s treated as URL. If it looks like a search query, it’s treated as a query and run to the search engine that you’ve configured.

The “looks like URL” part is done with a few simple prefix and regex rules that seemed to be robust enough in my testing.

Search engines

I only implemented Google and DuckDuckGo initially. Adding other ones is trivial, just add them in SearchEngine. Not sure how much we should invest into extra search engine features, like safesearch on/off, local versions etc. This can be added if needed.

stakes pushed a commit that referenced this pull request Jun 21, 2015
Implements #22 “Turn URL bar into omnibox”
@stakes stakes merged commit 64626f9 into stakes:master Jun 21, 2015
stakes added a commit that referenced this pull request Jul 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants