From 5e6fa4ccfc103750b84df02a35f42a6acef78fa1 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Fri, 8 May 2015 15:39:13 +0100 Subject: Search completion; suppress custom search keyword. --- background_scripts/completion.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'background_scripts/completion.coffee') diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index b9efb034..9d249198 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -382,6 +382,8 @@ class SearchEngineCompleter autoSelect: true # Always reset the selection to this suggestion on query change. The UX is weird otherwise. forceAutoSelect: true + # Suppress the "w" from "w query terms" in the vomnibar input. + suppressLeadingQueryTerm: true onComplete suggestions, exclusive: if custom and CompletionEngines.haveCompletionEngine searchUrl then description else null @@ -418,7 +420,7 @@ class SearchEngineCompleter title: suggestion relevancy: relavancy *= 0.9 highlightTerms: false - insertText: if custom then "#{keyword} #{suggestion}" else suggestion + insertText: suggestion # We keep at least three suggestions (if possible) and at most six. We keep more than three only if # there are enough slots. The idea is that these suggestions shouldn't wholly displace suggestions -- cgit v1.2.3