Skip to content

Commit

Permalink
feat(plugin-web): Add Crates.io & StackOverflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mmstick committed Dec 14, 2020
1 parent 5f833cb commit 82f0268
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/plugins/web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ class App {
this.query_base = 'https://smile.amazon.com/s?k='
this.name_base = 'Amazon'
break

case 'stack':
this.query_base = 'https://stackoverflow.com/search?q='
this.name_base = 'Stack Overflow'
break

case 'crates':
this.query_base = 'https://crates.io/search?q='
this.name_base = 'Crates.io'
break

default:
this.query_base = 'https://www.duckduckgo.com/?q='
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/web/meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Web Search",
"description": "Searches",
"pattern": "^(amazon|wiki|bing|ddg|google|yt)\\s.*",
"pattern": "^(amazon|wiki|bing|ddg|google|yt|stack|crates)\\s.*",
"exec": "main.js",
"icon": "system-search"
}

0 comments on commit 82f0268

Please sign in to comment.