mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-21 00:32:48 +02:00
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:
@@ -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.
|
||||
Reference in New Issue
Block a user