Add Omnibox API example (#164)

* Add Omnibox API example

* Add an example for the omnibox api

* Resolved pull request comments and did some minor refactoring

* Resolved pull request comments and did some minor refactoring

* Fix error when handling default suggestion

* Fix error when handling default suggestion

* Require Firefox 52, update version to 1.0, and update match pattern to be more specific
This commit is contained in:
Matthew Wein
2016-12-16 15:26:19 -08:00
committed by wbamberg
parent 087c8a2f06
commit f5e9fbdf35
3 changed files with 132 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# firefox-code-search
## What it does
This extension allows you to search the Firefox codebase using the awesome bar.
To test it out, type 'cs' into the awesome bar followed by a search string (e.g. `cs hello world`). The results will be shown as suggestions, and clicking on a suggestion will navigate to the file where the result was found.
To search a specific file, use the "path:" prefix (e.g. `cs hello path:omnibox.js`)
## What it shows
How to use the omnibox API to add custom suggestions to the awesome bar.