From 35a5357704ace1d9732a15cc3a5d792df53f2170 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E3=81=A8=E3=82=93=E3=81=A8=E3=82=93=E3=81=BC?=
 <70003919+KaitoMuraoka@users.noreply.github.com>
Date: Tue, 16 Jan 2024 18:37:13 +0900
Subject: [PATCH] feat(web-search): add `deepL` (#12165)

---
 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 6e4b4d7b..cf5bab3f 100644
--- a/plugins/web-search/README.md
+++ b/plugins/web-search/README.md
@@ -45,6 +45,7 @@ Available search contexts are:
 | `scholar`             | `https://scholar.google.com/scholar?q=`         |
 | `ask`                 | `https://www.ask.com/web?q=`                    |
 | `youtube`             | `https://www.youtube.com/results?search_query=` |
+| `deepl`               | `https://www.deepl.com/translator#auto/auto/`   |
 
 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 a8848fd9..1b42abe8 100644
--- a/plugins/web-search/web-search.plugin.zsh
+++ b/plugins/web-search/web-search.plugin.zsh
@@ -26,6 +26,7 @@ function web_search() {
     scholar         "https://scholar.google.com/scholar?q="
     ask             "https://www.ask.com/web?q="
     youtube         "https://www.youtube.com/results?search_query="
+    deepl           "https://www.deepl.com/translator#auto/auto/"
   )
 
   # check whether the search engine is supported
@@ -68,6 +69,7 @@ alias archive='web_search archive'
 alias scholar='web_search scholar'
 alias ask='web_search ask'
 alias youtube='web_search youtube'
+alias deepl='web_search deepl'
 
 #add your own !bang searches here
 alias wiki='web_search duckduckgo \!w'