typst / webapp-issues

Issue tracker for Typst's web app.
https://typst.app
12 stars 0 forks source link

Declare the documentation as a search engine to browsers #249

Open MDLC01 opened 8 months ago

MDLC01 commented 8 months ago

Description

When I go to, e.g., Wikipedia, I can add it as a search engine in my browser. This makes it easier to search for something on Wikipedia later, as I can choose to search with Wikipedia when using the browser's search bar. In the image below, I add GitHub as a search engine in Firefox.

Adding GitHub as a search engine in Firefox (image is in french).

I think this is done using OpenSearch (MDN entry).

The documentation should declare itself as a search engine.

Use Case

Being able to search something in Typst's documentation without having to open https://typst.app/docs/ first.

Update

A separate search engine should be provided for the Typst Universe.

frozolotl commented 5 months ago

This would also be really useful for Bangs^1.

MultisampledNight commented 4 months ago

Fwiw it'd be awesome if the Universe was also advertised as search engine!

haennes commented 2 months ago
FYI you can search through the following tools like this: (discovered) tool example url search url firefox
ascii table https://typst.app/tools/ascii-table/#q=A https://typst.app/tools/ascii-table/#q={searchTerms}
universe https://typst.app/universe/search?q=cetz https://typst.app/universe/search?q={searchTerms}
docs x x
symbols https://typst.app/docs/reference/symbols/sym?query=quest https://typst.app/docs/reference/symbols/sym?query={searchTerms}
emojis https://typst.app/docs/reference/symbols/emoji?query=ant https://typst.app/docs/reference/symbols/emoji?query={searchTerms}

Note: can not confirm that {searchTerms} is correct (due to special setup (nixos)), alternatively it might be %s

adding this to firefox: hamburger menu at the top right > Settings > Search (left sidebar) > scroll to the bottom > add name: displayed in the browserbar keyword: type this to start searching in the browserbar url: the one from above