Add custom search in vimium
This commit is contained in:
parent
cf66ac82b5
commit
cc0077a5ae
3 changed files with 4 additions and 41 deletions
|
|
@ -3,45 +3,6 @@
|
|||
default = "ddg";
|
||||
|
||||
engines = {
|
||||
"ddg" = {
|
||||
urls = [{
|
||||
template = "https://duckduckgo.com/?q={searchTerms}";
|
||||
}];
|
||||
icon = "https://duckduckgo.com/favicon.ico";
|
||||
definedAliases = [ "@ddg" ];
|
||||
};
|
||||
|
||||
"Nix Packages" = {
|
||||
urls = [{
|
||||
template = "https://search.nixos.org/packages";
|
||||
params = [
|
||||
{ name = "channel"; value = "unstable"; }
|
||||
{ name = "query"; value = "{searchTerms}"; }
|
||||
];
|
||||
}];
|
||||
definedAliases = [ "@nixpkg" ];
|
||||
};
|
||||
|
||||
"Linkding" = {
|
||||
urls = [{
|
||||
template = "https://link.nas.yanlincs.com/bookmarks";
|
||||
params = [
|
||||
{ name = "q"; value = "{searchTerms}"; }
|
||||
];
|
||||
}];
|
||||
definedAliases = [ "@link" ];
|
||||
};
|
||||
|
||||
"google" = {
|
||||
urls = [{
|
||||
template = "https://www.google.com/search";
|
||||
params = [
|
||||
{ name = "q"; value = "{searchTerms}"; }
|
||||
];
|
||||
}];
|
||||
definedAliases = [ "@g" ];
|
||||
};
|
||||
|
||||
# Hide unwanted default search engines
|
||||
"google".metaData.hidden = true;
|
||||
"bing".metaData.hidden = true;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
"scrollStepSize": 60,
|
||||
"smoothScroll": true,
|
||||
"grabBackFocus": false,
|
||||
"searchEngines": "",
|
||||
"searchUrl": "https://www.google.com/search?q=",
|
||||
"searchEngines": "ddg: https://duckduckgo.com/?q=%s\nnix: https://search.nixos.org/packages?channel=unstable&query=%s\nlink: https://link.yanlincs.com/bookmarks?q=%s\ng: https://www.google.com/search?q=%s",
|
||||
"searchUrl": "https://duckduckgo.com/?q=",
|
||||
"userDefinedLinkHintCss": "div > .vimiumHintMarker {\n padding: 2px 3px;\n background-color: #fabd2f;\n color: #282828;\n font-weight: bold;\n font-size: 12px;\n font-family: monospace;\n border: 1px solid #282828;\n}\n\ndiv > .vimiumHintMarker span {\n color: #282828;\n}\n\ndiv > .vimiumHintMarker > .matchingCharacter {\n color: #fb4934;\n}"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue