browser site search shortcuts
This is an incomplete doc about browser site search shortcuts. You can modify your web browser so that after jumping to your address bar / 'omnibox' (Cmd+L) you can type a shortcut to search via a particular search tool.
To add a search tool in your browser, you need a name for the tool, a shortcut, and a URL with %s in place of the query. Here is the Google Chrome Help page. You can reach the settings directly by typing the following into your address bar: chrome://settings/searchEngines
Search: `danielsgriffin.com/search`
Shortcut: `dsg`
URL with %s in place of query: `https://danielsgriffin.com/search/?q=%s`
<tr>
<td><a href=""></a></td>
<td></td>
<td></td>
</tr>
| Search tool | URL | Shortcut |
|---|
Added
See also [the OpenSearch protocol description specs @ github.com/dewitt/opensearch](https://github.com/dewitt/opensearch), [an OpenSearch description format reference in the MDN docs][2], and [background on OpenSearch at Wikipedia][3].
[This is my first time suggesting an edit to a Stack Overflow answer](https://twitter.com/danielsgriffin/status/1696642364805390492).
Added
While searching to try to remember the name of the OpenSearch protocol, g[parameter q in searches browsers sites engines], I stumbled on [Sourcegraph's Browser search engine shortcuts](https://docs.sourcegraph.com/integration/browser_extension/how-tos/browser_search_engine) doc.
You can add Sourcegraph as a browser search engine to quickly search Sourcegraph from your browser's location bar when you type a special shortcut, such as src. This is one of the most common ways to initiate a search on Sourcegraph.
As an example, you can search: [https://sourcegraph.com/search?q=OpenSearchDescription](https://sourcegraph.com/search?q=OpenSearchDescription)
Added
Added Sourcegraph to the table.
Added
- I've added Marginalia Search to the table above. - I've added the actual shortcuts I use in my browser to the table. - TODO: Look into supporting programmatically updating browser site search shortcuts with a Chrome extension. - Added 'omnibox' tag.