feat(web-search): add deepL (#12165)

This commit is contained in:
とんとんぼ 2024-01-16 18:37:13 +09:00 committed by GitHub
parent 8be4789bbb
commit 35a5357704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -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:

View File

@ -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'