aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content_scripts/vomnibar.coffee2
-rw-r--r--pages/vomnibar.coffee3
2 files changed, 4 insertions, 1 deletions
diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee
index 76698634..d46b2daf 100644
--- a/content_scripts/vomnibar.coffee
+++ b/content_scripts/vomnibar.coffee
@@ -8,7 +8,7 @@ Vomnibar =
extras = {}
for extra in registryEntry.extras
[ key, value ] = extra.split "="
- extras.query = "#{value} " if key? and key == "keyword" and value? and 0 < value.length
+ extras.keyword = value if key? and key == "keyword" and value? and 0 < value.length
extras
# sourceFrameId here (and below) is the ID of the frame from which this request originates, which may be different
diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee
index 71f22900..d5659fdc 100644
--- a/pages/vomnibar.coffee
+++ b/pages/vomnibar.coffee
@@ -17,6 +17,7 @@ Vomnibar =
query: ""
newTab: false
selectFirst: false
+ keyword: null
extend options, userOptions
extend options, refreshInterval: if options.completer == "omni" then 150 else 0
@@ -28,6 +29,7 @@ Vomnibar =
@vomnibarUI.setRefreshInterval options.refreshInterval
@vomnibarUI.setForceNewTab options.newTab
@vomnibarUI.setQuery options.query
+ @vomnibarUI.setKeyword options.keyword
@vomnibarUI.update true
hide: -> @vomnibarUI?.hide()
@@ -40,6 +42,7 @@ class VomnibarUI
@initDom()
setQuery: (query) -> @input.value = query
+ setKeyword: (keyword) -> @customSearchMode = keyword
setInitialSelectionValue: (@initialSelectionValue) ->
setRefreshInterval: (@refreshInterval) ->
setForceNewTab: (@forceNewTab) ->