Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add opensearch description #154

Open
LennyPenny opened this issue Oct 30, 2024 · 3 comments
Open

Add opensearch description #154

LennyPenny opened this issue Oct 30, 2024 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@LennyPenny
Copy link

LennyPenny commented Oct 30, 2024

This allows one to easily add the search engine to the browser.

Here's how it looks on search.nixos.org:
image

Docs are here, maybe I'll get to it myself on the weekend:)

@SuperSandro2000
Copy link
Member

for later reference

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
                       xmlns:moz="http://www.mozilla.org/2006/browser/search/">
  <ShortName>NüschtOS Search</ShortName>
  <Description>Simple and fast static-page NixOS option search</Description>
  <InputEncoding>UTF-8</InputEncoding>
  <Image width="16" height="16" type="image/x-icon">DOMAIN/favicon.ico</Image>
  <Url type="text/html" template="DOMAIN/?query={searchTerms}"/>
  <moz:SearchForm>DOMAIN</moz:SearchForm>
</OpenSearchDescription>

@MarcelCoding NüschtOS Option Search or NüschtOS Search? Probably the later, right? Also how do we get the DOMAIN in? We probably need to add that as a build option.

@SuperSandro2000 SuperSandro2000 added enhancement New feature or request good first issue Good for newcomers labels Oct 31, 2024
@MarcelCoding
Copy link
Member

I would use the template string which gets replaced in the nix build.

@SuperSandro2000
Copy link
Member

Yeah, we would need to add one for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants