883da63320806532f3d3246b03f934e15aff3bab
- Author
- Mateus Fernandes de Mello <mt@mfmello.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(web-search): add programming packages search (#12199)
Diff
1diff --git a/plugins/web-search/README.md b/plugins/web-search/README.md
2index cf5bab3f78bf77b8596fb45a79b6a5e8472c4de9..d21c81ca9c566ff216db9571187e779cb778883f 100644
3--- a/plugins/web-search/README.md
4+++ b/plugins/web-search/README.md
5@@ -46,6 +46,10 @@ Available search contexts are:
6 | `ask` | `https://www.ask.com/web?q=` |
7 | `youtube` | `https://www.youtube.com/results?search_query=` |
8 | `deepl` | `https://www.deepl.com/translator#auto/auto/` |
9+| `dockerhub` | `https://hub.docker.com/search?q=` |
10+| `npmpkg` | `https://www.npmjs.com/search?q=` |
11+| `packagist` | `https://packagist.org/?query=` |
12+| `gopkg` | `https://pkg.go.dev/search?m=package&q=` |
13
14 Also there are aliases for bang-searching DuckDuckGo:
15
16diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh
17index 0fa2852dc374160766d43fec4296762e3673359f..2fe4aea84f28d133c0a09c2fbce632e30102bafd 100644
18--- a/plugins/web-search/web-search.plugin.zsh
19+++ b/plugins/web-search/web-search.plugin.zsh
20@@ -27,6 +27,10 @@ function web_search() {
21 ask "https://www.ask.com/web?q="
22 youtube "https://www.youtube.com/results?search_query="
23 deepl "https://www.deepl.com/translator#auto/auto/"
24+ dockerhub "https://hub.docker.com/search?q="
25+ npmpkg "https://www.npmjs.com/search?q="
26+ packagist "https://packagist.org/?query="
27+ gopkg "https://pkg.go.dev/search?m=package&q="
28 )
29
30 # check whether the search engine is supported
31@@ -75,6 +79,10 @@ alias scholar='web_search scholar'
32 alias ask='web_search ask'
33 alias youtube='web_search youtube'
34 alias deepl='web_search deepl'
35+alias dockerhub='web_search dockerhub'
36+alias npmpkg='web_search npmpkg'
37+alias packagist='web_search packagist'
38+alias gopkg='web_search gopkg'
39
40 #add your own !bang searches here
41 alias wiki='web_search duckduckgo \!w'