fix some opensearch stuff

This commit is contained in:
Schrottkatze 2024-04-04 02:57:03 +02:00
parent 9ed3cde274
commit e53b2e1c90
No known key found for this signature in database

View file

@ -97,7 +97,13 @@
"NixOS Wiki" = { "NixOS Wiki" = {
urls = [ urls = [
{ {
template = "https://nixos.wiki/index.php?title=Special:Search&search={searchTerms}&namespace=0"; template = "https://nixos.wiki/index.php";
params = [
{
name = "search";
value = "{searchTerms}";
}
];
} }
]; ];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
@ -106,15 +112,16 @@
"Noogle" = { "Noogle" = {
urls = [ urls = [
{ {
template = "https://noogle.dev/q?term={searchTerms}"; template = "https://noogle.dev/q";
params = [ params = [
{ {
name = "q"; name = "term";
value = "{searchTerms}"; value = "{searchTerms}";
} }
]; ];
} }
]; ];
definedAliases = ["ngl"];
}; };
"lib.rs" = { "lib.rs" = {
urls = [ urls = [
@ -146,6 +153,14 @@
icon = "https://docs.rs/-/static/favicon.ico"; icon = "https://docs.rs/-/static/favicon.ico";
definedAliases = ["docs"]; definedAliases = ["docs"];
}; };
"rust docs direct open" = {
urls = [
{
template = "https://docs.rs/{searchTerms}";
}
];
definedAliases = ["docd"];
};
"rust std docs" = { "rust std docs" = {
urls = [ urls = [
{ {
@ -161,6 +176,19 @@
icon = "https://doc.rust-lang.org/favicon.ico"; icon = "https://doc.rust-lang.org/favicon.ico";
definedAliases = ["std"]; definedAliases = ["std"];
}; };
"MDN" = {
urls = [
{
template = "https://developer.mozilla.org/search";
params = [
{
name = "q";
value = "{searchTerms}";
}
];
}
];
};
"Bing".metaData.hidden = true; "Bing".metaData.hidden = true;
"Google".metaData.hidden = true; "Google".metaData.hidden = true;
"Amazon.de".metaData.hidden = true; "Amazon.de".metaData.hidden = true;