Skip to content

Commit

Permalink
Reduce base score for tabs. Add more extensive user config example (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fannon authored Sep 6, 2021
1 parent bfa945e commit 059d0f1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## unreleased

- Reduced default base score for open tabs

## v1.0.3

- Support for Opera when delivered through Opera addons
Expand Down
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ Or a more advanced example

```json5
{
search: {
approach: 'precise', // Use precise instead of fuzzy search
},
history: {
daysAgo: 7,
maxItems: 1024,
ignoreList: [
// Ignore some localhost URLs in browser history
'http://localhost',
Expand All @@ -97,17 +102,20 @@ Or a more advanced example
},
searchEngines: {
choices: [
// Use only DuckDuckGo and dict.cc as fallback search engines
// Use only Google and dict.cc as fallback search engines
{
name: 'DuckDuckGo',
urlPrefix: 'https://duckduckgo.com/?q=',
name: 'Google',
urlPrefix: 'https://www.google.com/search?q=',
},
{
name: 'dict.cc',
urlPrefix: 'https://www.dict.cc/?s=',
},
],
},
score: {
tabBaseScore: 70, // customize base score for open tabs
},
}
```

Expand Down
2 changes: 1 addition & 1 deletion popup/js/model/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export const defaultOptions = {
/** Base score for bookmark results */
bookmarkBaseScore: 100,
/** Base score for tab results */
tabBaseScore: 90,
tabBaseScore: 70,
/** Base score for history results */
historyBaseScore: 50,
/** Base score for search engine entries */
Expand Down

0 comments on commit 059d0f1

Please sign in to comment.