From f31b718d78031cf52d06b67f32bf65b53ecfe08f Mon Sep 17 00:00:00 2001 From: Luis Estevez Date: Tue, 8 Apr 2025 15:15:04 -0400 Subject: [PATCH] feat(web-search): add Mozilla Developer Network search query --- 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 d0b03dff2..3a5f8357e 100644 --- a/plugins/web-search/README.md +++ b/plugins/web-search/README.md @@ -53,6 +53,7 @@ Available search contexts are: | `chatgpt` | `https://chatgpt.com/?q=` | | `reddit` | `https://www.reddit.com/search/?q=` | | `ppai` | `https://www.perplexity.ai/search/new?q=` | +| `mdn` | `https://developer.mozilla.org/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 ff77faed7..0c0850786 100644 --- a/plugins/web-search/web-search.plugin.zsh +++ b/plugins/web-search/web-search.plugin.zsh @@ -34,6 +34,7 @@ function web_search() { chatgpt "https://chatgpt.com/?q=" reddit "https://www.reddit.com/search/?q=" ppai "https://www.perplexity.ai/search/new?q=" + mdn "https://developer.mozilla.org/search?q=" ) # check whether the search engine is supported @@ -89,6 +90,7 @@ alias gopkg='web_search gopkg' alias chatgpt='web_search chatgpt' alias reddit='web_search reddit' alias ppai='web_search ppai' +alias mdn='web_search mdn' #add your own !bang searches here alias wiki='web_search duckduckgo \!w'