Skip to content

Commit

Permalink
feat(plugin-web): Additional websites to search
Browse files Browse the repository at this point in the history
  • Loading branch information
derpmatt committed Jan 5, 2021
1 parent 66575fa commit 4db2e31
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
29 changes: 27 additions & 2 deletions src/plugins/web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,42 @@ 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

case 'arch':
this.query_base = 'https://wiki.archlinux.org/index.php/'
this.name_base = 'Arch Wiki'
break

case 'pp':
this.query_base = 'https://pop-planet.info/forums/search/1/?q='
this.name_base = 'Pop!_Planet'
break

case 'ppw':
this.query_base = 'https://pop-planet.info/wiki/?search='
this.name_base = 'Pop!_Planet Wiki'
break

case 'rdt':
this.query_base = 'https://www.reddit.com/search/?q='
this.name_base = 'Reddit'
break

case 'bc':
this.query_base = 'https://bandcamp.com/search?q='
this.name_base = 'Bandcamp'
break

default:
this.query_base = 'https://www.duckduckgo.com/?q='
this.name_base = 'DuckDuckGo'
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|stack|crates)\\s.*",
"pattern": "^(amazon|wiki|bing|ddg|google|yt|stack|crates|arch|pp|ppw|rdt|bc)\\s.*",
"exec": "main.js",
"icon": "system-search"
}

0 comments on commit 4db2e31

Please sign in to comment.