From e52598a5cc3c73fa907f83c84f4270fdaee9c930 Mon Sep 17 00:00:00 2001 From: Francesco Cataldo <78490028+FraCata00@users.noreply.github.com> Date: Wed, 18 Sep 2024 20:43:52 +0200 Subject: [PATCH] feat(web-search): add `reddit` (#12664) --- plugins/web-search/README.md | 1 + plugins/web-search/web-search.plugin.zsh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/plugins/web-search/README.md b/plugins/web-search/README.md index 91754ac7f..ad3741fc9 100644 --- a/plugins/web-search/README.md +++ b/plugins/web-search/README.md @@ -51,6 +51,7 @@ Available search contexts are: | `packagist` | `https://packagist.org/?query=` | | `gopkg` | `https://pkg.go.dev/search?m=package&q=` | | `chatgpt` | `https://chatgpt.com/?q=` | +| `reddit` | `https://www.reddit.com/search/?q=` | Also there are aliases for bang-searching DuckDuckGo: diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh index 2f524ba1e..81eb1c77d 100644 --- a/plugins/web-search/web-search.plugin.zsh +++ b/plugins/web-search/web-search.plugin.zsh @@ -32,6 +32,7 @@ function web_search() { packagist "https://packagist.org/?query=" gopkg "https://pkg.go.dev/search?m=package&q=" chatgpt "https://chatgpt.com/?q=" + reddit "https://www.reddit.com/search/?q=" ) # check whether the search engine is supported @@ -85,6 +86,7 @@ alias npmpkg='web_search npmpkg' alias packagist='web_search packagist' alias gopkg='web_search gopkg' alias chatgpt='web_search chatgpt' +alias reddit='web_search reddit' #add your own !bang searches here alias wiki='web_search duckduckgo \!w'