diff options
| author | Stephen Blott | 2015-05-19 06:50:28 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-05-19 06:50:28 +0100 | 
| commit | 879b84246a176bd653836aef35fc7102b98ca1be (patch) | |
| tree | fe24e27586bf57e6fad4d297ff238103faf069b8 /background_scripts/completion.coffee | |
| parent | 31807f8c44c6d032cf9ba5ce0f8507c4e716da8c (diff) | |
| download | vimium-879b84246a176bd653836aef35fc7102b98ca1be.tar.bz2 | |
Search completion; tweak appearance of historical search queries.
Diffstat (limited to 'background_scripts/completion.coffee')
| -rw-r--r-- | background_scripts/completion.coffee | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 21214a0f..81f5c3a6 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -570,7 +570,7 @@ class SearchEngineCompleter      return unless request.searchEngines      engines = (engine for _, engine of request.searchEngines)      engines.sort (a,b) -> b.searchUrl.length - a.searchUrl.length -    engines.push keyword: null, description: "search", searchUrl: Settings.get "searchUrl" +    engines.push keyword: null, description: "search history", searchUrl: Settings.get "searchUrl"      for suggestion in suggestions        unless suggestion.isSearchSuggestion or suggestion.insertText          for engine in engines @@ -579,7 +579,9 @@ class SearchEngineCompleter              # suggestion, then custom search-engine mode should be activated.              suggestion.customSearchMode = engine.keyword              suggestion.title = suggestion.insertText -            suggestion.type = engine.description ? "custom search" +            # NOTE(smblott) The following is disabled: experimentation with UI. +            # suggestion.highlightTermsExcludeUrl = true +            # suggestion.type = engine.description ? "custom search history"              break  # A completer which calls filter() on many completers, aggregates the results, ranks them, and returns the top | 
