dc3bbcda2689b26cfb16e714225e263fa74e3f70

Author
Nihad Abbasov <nihad@42na.in>
Committer
GitHub <noreply@github.com>
Date

Message

feat(web-search): add RubyGems.org (#13210)

Diff

 1diff --git a/plugins/web-search/README.md b/plugins/web-search/README.md
 2index d0b03dff26b15923b750ebcee5239ac102a0ef45..ed484f237fc92ed8dde455291a4dfdc09b760bd0 100644
 3--- a/plugins/web-search/README.md
 4+++ b/plugins/web-search/README.md
 5@@ -47,6 +47,7 @@ Available search contexts are:
 6 | `youtube`             | `https://www.youtube.com/results?search_query=` |
 7 | `deepl`               | `https://www.deepl.com/translator#auto/auto/`   |
 8 | `dockerhub`           | `https://hub.docker.com/search?q=`              |
 9+| `gems`                | `https://rubygems.org/search?query=`            |
10 | `npmpkg`              | `https://www.npmjs.com/search?q=`               |
11 | `packagist`           | `https://packagist.org/?query=`                 |
12 | `gopkg`               | `https://pkg.go.dev/search?m=package&q=`        |
13diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh
14index ff77faed755f889a0c6d8c89250abd75d4ac277a..4eb42be5738038bc17c23edfb20f2a896302e14e 100644
15--- a/plugins/web-search/web-search.plugin.zsh
16+++ b/plugins/web-search/web-search.plugin.zsh
17@@ -28,6 +28,7 @@ function web_search() {
18     youtube         "https://www.youtube.com/results?search_query="
19     deepl           "https://www.deepl.com/translator#auto/auto/"
20     dockerhub       "https://hub.docker.com/search?q="
21+    gems            "https://rubygems.org/search?query="
22     npmpkg          "https://www.npmjs.com/search?q="
23     packagist       "https://packagist.org/?query="
24     gopkg           "https://pkg.go.dev/search?m=package&q="
25@@ -83,6 +84,7 @@ alias ask='web_search ask'
26 alias youtube='web_search youtube'
27 alias deepl='web_search deepl'
28 alias dockerhub='web_search dockerhub'
29+alias gems='web_search gems'
30 alias npmpkg='web_search npmpkg'
31 alias packagist='web_search packagist'
32 alias gopkg='web_search gopkg'