mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 14:28:33 +02:00
* 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
13 lines
522 B
Markdown
13 lines
522 B
Markdown
# 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. |