diff options
| author | Stephen Blott | 2015-05-13 14:38:46 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-05-13 14:39:05 +0100 |
| commit | c3d399f9467e07733340a56ca1f71b61bedad1f9 (patch) | |
| tree | 287ba7e8ed9e8f9fe0bea93399ce564f56a5551a /background_scripts | |
| parent | 78645aa7d8c0a03bd33f619bbb39ba0a7d0c4921 (diff) | |
| download | vimium-c3d399f9467e07733340a56ca1f71b61bedad1f9.tar.bz2 | |
Search completion; tweak constants.
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/completion.coffee | 5 | ||||
| -rw-r--r-- | background_scripts/settings.coffee | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index d3d54521..8f99b90e 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -435,7 +435,7 @@ class SearchEngineCompleter # a useful suggestion from another completer. # characterCount = query.length - queryTerms.length + 1 - relevancy = (if custom then 0.9 else factor) * (Math.min(characterCount, 10.0)/10.0) + relevancy = (if custom then 0.9 else factor) * (Math.min(characterCount, 12.0)/12.0) # This filter is applied to all of the suggestions from all of the completers. filter = (suggestions) -> @@ -483,12 +483,11 @@ class SearchEngineCompleter # Make the first suggestion float to the top of the vomnibar (except if we would be competing with the # domain completer, which also assigns a relevancy of 1). if 0 < completions.length - if custom or (1 < queryTerms.length or /\S\s/.test query) + if custom # or (1 < queryTerms.length or /\S\s/.test query) extend completions[0], relevancy: 1 autoSelect: custom forceAutoSelect: custom - isPrimarySuggestion: custom insertText: null onComplete completions, args... diff --git a/background_scripts/settings.coffee b/background_scripts/settings.coffee index afc270fd..269b4a2c 100644 --- a/background_scripts/settings.coffee +++ b/background_scripts/settings.coffee @@ -43,7 +43,7 @@ root.Settings = Settings = # or strings defaults: scrollStepSize: 60 - omniSearchWeight: 0.6 + omniSearchWeight: 0.4 smoothScroll: true keyMappings: "# Insert your preferred key mappings here." linkHintCharacters: "sadfjklewcmpgh" |
