shared/search-engines
Interfaces
Section titled “Interfaces”SearchEngine
Section titled “SearchEngine”Defined in: app/src/shared/search-engines.ts:2
A search engine that can be chosen in the settings.
Properties
Section titled “Properties”
readonlyid:string
Defined in: app/src/shared/search-engines.ts:4
Stable identifier, such as duckduckgo.
readonlyname:string
Defined in: app/src/shared/search-engines.ts:6
Name shown to users.
searchUrl
Section titled “searchUrl”
readonlysearchUrl:string
Defined in: app/src/shared/search-engines.ts:8
Search URL with %s for the encoded query.
Variables
Section titled “Variables”searchEngines
Section titled “searchEngines”
constsearchEngines: readonlySearchEngine[]
Defined in: app/src/shared/search-engines.ts:15
The search engines offered without configuration. The URLs are the plain search URLs of each engine, without partner or tracking parameters.
Functions
Section titled “Functions”engineForSearchUrl()
Section titled “engineForSearchUrl()”engineForSearchUrl(
searchUrl):SearchEngine|undefined
Defined in: app/src/shared/search-engines.ts:30
Finds the engine that a search URL belongs to.
Parameters
Section titled “Parameters”searchUrl
Section titled “searchUrl”string
A search URL with %s, such as the value of search.urlTemplate.
Returns
Section titled “Returns”SearchEngine | undefined
The engine, or undefined for a custom search URL.