From a18ad484f2fdc0019c15d94405c915f8bfe6d76f Mon Sep 17 00:00:00 2001 From: mike-work Date: Wed, 7 May 2014 23:57:56 +0100 Subject: Adding in search engines feature to fix #1009 --- pages/options.coffee | 4 ++-- pages/options.html | 27 ++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 3 deletions(-) (limited to 'pages') diff --git a/pages/options.coffee b/pages/options.coffee index 34696f68..d73d8f15 100644 --- a/pages/options.coffee +++ b/pages/options.coffee @@ -4,9 +4,9 @@ bgSettings = chrome.extension.getBackgroundPage().Settings editableFields = [ "scrollStepSize", "excludedUrls", "linkHintCharacters", "linkHintNumbers", "userDefinedLinkHintCss", "keyMappings", "filterLinkHints", "previousPatterns", - "nextPatterns", "hideHud", "regexFindMode", "searchUrl"] + "nextPatterns", "hideHud", "regexFindMode", "searchUrl", "searchEngines"] -canBeEmptyFields = ["excludedUrls", "keyMappings", "userDefinedLinkHintCss"] +canBeEmptyFields = ["excludedUrls", "keyMappings", "userDefinedLinkHintCss", "searchEngines"] document.addEventListener "DOMContentLoaded", -> populateOptions() diff --git a/pages/options.html b/pages/options.html index 8c7c007a..5450a774 100644 --- a/pages/options.html +++ b/pages/options.html @@ -122,6 +122,10 @@ width: 100%; min-height: 135px; } + textarea#searchEngines { + width: 100%; + min-height: 135px; + } input#previousPatterns, input#nextPatterns { width: 100%; } @@ -330,12 +334,33 @@ unmapAll
- Set which search engine is used when searching from the Vomnibar (examples: "http://duckduckgo.com/?q=", "http://www.google.com/search?q="). + Set which search engine is used when searching from the Vomnibar (examples: "http://duckduckgo.com/?q=").
+ + Search Engines + +
+
+ Allow customised search engines the format is `token: http://address.com/q?=%s` +
+ token must not contain a colon. +
+ comments are allowed and start with '#' +
+ all `%s` will be replaced with the query string +
+ for a list of default and extra search engines please see here +
+ to subsequently search for something just type token follewed by your search terms +
+
+ + + -- cgit v1.2.3