aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorStephen Blott2015-05-08 15:39:13 +0100
committerStephen Blott2015-05-08 15:39:13 +0100
commit5e6fa4ccfc103750b84df02a35f42a6acef78fa1 (patch)
tree2aed4e810950f9bf5127ba691e41850e1091325a /background_scripts
parent9887c8d763bf7b58e459a48f34531f6877ffebf4 (diff)
downloadvimium-5e6fa4ccfc103750b84df02a35f42a6acef78fa1.tar.bz2
Search completion; suppress custom search keyword.
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/completion.coffee4
1 files changed, 3 insertions, 1 deletions
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