question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding a <link rel="search"> tag (open search)

See original GitHub issue

This is used in the Scratch Wiki:

<link rel="search" type="application/opensearchdescription+xml" href="/w/opensearch_desc.php" title="Scratch Wiki (en)"/>

When the user has visited the Scratch Wiki once, and then types in “en.scratch-wiki.info” in the search bar, you see something like “Press tab to search Scratch Wiki (en)”. Why not add it to scratch.mit.edu?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
R4356thcommented, Jul 3, 2020

The search can be done only on browsers using Chromium probably.

0reactions
BoomerScratchcommented, Jul 4, 2020

Example <link> element we can use:

<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Scratch"/>

/opensearch.xml example (got most from GitHub’s opensearch.xml):

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Scratch</ShortName>
<Description>Search Scratch</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">https://scratch.mit.edu/favicon.ico</Image>
<Url type="text/html" method="get" template="https://github.com/search/projects?q={searchTerms}"/>
<moz:SearchForm>https://scratch.mit.edu/search/projects</moz:SearchForm>
</OpenSearchDescription>

Tell me if you got any feedback! 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tagging Amazon OpenSearch Service domains
Select the domain you want to add tags to and go to the Tags tab. Choose Manage and Add new tag. Enter a...
Read more >
Using Hyperlinks to Refer Search Results - AddSearch
You can display search results with a hyperlink for a specific search phrase. The link allows you to open up the search results...
Read more >
How to add research - Help Center - ResearchGate
Tag your resources with topics if you wish; Click Finish to add the resources. Once added, the file will show up as linked...
Read more >
OpenSearch in CiNii Research
Item Name Parameter All Data Articles Books Dissertations Projects Availability of... Search type ‑ all data articles books dissertations projects Application ID appid ◯ ◯...
Read more >
Link Building: The Free SEO Beginner's Guide - Moz
The anatomy of a hyperlink · Start of link tag: Called an anchor tag (hence the "a"), this opens the link tag and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found