788b5776c03996d6c88dce786f9e0879a0c3aa6e

Author
Wagner Moreira <47096330+wagnermor@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(web-search): add search with `claude.ai` and `grok.com` (#13222)

Diff

 1diff --git a/plugins/web-search/README.md b/plugins/web-search/README.md
 2index ed484f237fc92ed8dde455291a4dfdc09b760bd0..26017a5332dc9cf6d4a6554e2d3a62e18546ce1f 100644
 3--- a/plugins/web-search/README.md
 4+++ b/plugins/web-search/README.md
 5@@ -52,6 +52,8 @@ Available search contexts are:
 6 | `packagist`           | `https://packagist.org/?query=`                 |
 7 | `gopkg`               | `https://pkg.go.dev/search?m=package&q=`        |
 8 | `chatgpt`             | `https://chatgpt.com/?q=`                       |
 9+| `claude`              | `https://claude.ai/new?q=`                      |
10+| `grok`                | `https://grok.com/?q=`                          |
11 | `reddit`              | `https://www.reddit.com/search/?q=`             |
12 | `ppai`                | `https://www.perplexity.ai/search/new?q=`       |
13 
14diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh
15index 4eb42be5738038bc17c23edfb20f2a896302e14e..b04302ad6c4c05216e0539cab26a753ac6577ac5 100644
16--- a/plugins/web-search/web-search.plugin.zsh
17+++ b/plugins/web-search/web-search.plugin.zsh
18@@ -33,6 +33,8 @@ function web_search() {
19     packagist       "https://packagist.org/?query="
20     gopkg           "https://pkg.go.dev/search?m=package&q="
21     chatgpt         "https://chatgpt.com/?q="
22+    grok            "https://grok.com/?q="
23+    claude          "https://claude.ai/new?q="
24     reddit          "https://www.reddit.com/search/?q="
25     ppai            "https://www.perplexity.ai/search/new?q="
26   )
27@@ -89,6 +91,8 @@ alias npmpkg='web_search npmpkg'
28 alias packagist='web_search packagist'
29 alias gopkg='web_search gopkg'
30 alias chatgpt='web_search chatgpt'
31+alias grok='web_search grok'
32+alias claude='web_search claude'
33 alias reddit='web_search reddit'
34 alias ppai='web_search ppai'
35 
36@@ -108,3 +112,4 @@ if [[ ${#ZSH_WEB_SEARCH_ENGINES} -gt 0 ]]; then
37   done
38   unset engines key
39 fi
40+