diff options
| author | とんとんぼ <70003919+KaitoMuraoka@users.noreply.github.com> | 2024-01-16 18:37:13 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-16 10:37:13 +0100 |
| commit | 35a5357704ace1d9732a15cc3a5d792df53f2170 (patch) | |
| tree | 5b985b5c60169d6574eca8d917c9dacd777b7580 | |
| parent | 8be4789bbbef06fe5eed581dc8c58df51e3cd9fd (diff) | |
| download | zsh-35a5357704ace1d9732a15cc3a5d792df53f2170.tar.gz zsh-35a5357704ace1d9732a15cc3a5d792df53f2170.tar.bz2 zsh-35a5357704ace1d9732a15cc3a5d792df53f2170.zip | |
feat(web-search): add `deepL` (#12165)
| -rw-r--r-- | plugins/web-search/README.md | 1 | ||||
| -rw-r--r-- | plugins/web-search/web-search.plugin.zsh | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/plugins/web-search/README.md b/plugins/web-search/README.md index 6e4b4d7b8..cf5bab3f7 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 a8848fd95..1b42abe86 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' |
