Skip to content

Commit

Permalink
docs: update PopClip intro
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Oct 27, 2023
1 parent e29f079 commit ab4c7bc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 27 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -499,14 +499,10 @@ Easydict 支持 URL scheme 快速查询:`easydict://xxx`,如 easydict://good
## 配合 PopClip 使用
你需要先安装 [PopClip](https://pilotmoon.com/popclip/),然后为 `Easydict`设置一个快捷键,默认是 `Opt + D`,那么你就可以通过 `PopClip` 快速打开 `Easydict` 啦!
你需要先安装 [PopClip](https://pilotmoon.com/popclip/),然后选中以下代码块,`PopClip` 会显示 "安装扩展 Easydict",点击它即可。(By **[liziqiang](https://github.com/liziqiang)**)
使用方法:选中以下代码块,`PopClip` 会显示 "安装 Easydict",点击它即可。
> 注意 ⚠️: 如果你修改了默认的快捷键,你需要跟着修改下面脚本中的快捷键 `key combo`。
```
# popclip
```shell
# popclip
name: Easydict
icon: iconify:ri:translate
interpreter: zsh
Expand All @@ -519,7 +515,7 @@ shell script: |
open "easydict://$POPCLIP_TEXT"
```

> 参考:https://github.com/pilotmoon/PopClip-Extensions#key-combo-string-format
> 参考:https://www.popclip.app/dev/shell-script-actions
## 设置

Expand Down
33 changes: 14 additions & 19 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<div align="center">
<a href="./README.md">中文</a> &nbsp;&nbsp;|&nbsp;&nbsp; <a href="./README_EN.md">English</a>
</div>

## Easydict

`Easydict` is a concise and easy-to-use translation dictionary macOS App that allows you to easily and elegantly look up words or translate text. Easydict is ready to use out of the box, can automatically recognize the language of the input text, supports input translate, select translate, and OCR screenshot translate, and can query multiple translation services results at the same time. Currently, it supports [Youdao Dictionary](https://www.youdao.com/), [**🍎 Apple System Dictionary**](./docs/How-to-use-macOS-system-dictionary-in-Easydict-en.md), [**🍎 macOS System Translation**](./docs/How-to-use-macOS-system-dictionary-in-Easydict-zh.md), [OpenAI(ChatGPT)](https://chat.openai.com/), [DeepL](https://www.deepl.com/translator), [Google](https://translate.google.com/), [Bing Translate](https://www.bing.com/translator), [Baidu](https://fanyi.baidu.com/), and [Volcano Translation](https://translate.volcengine.com/translate).
Expand Down Expand Up @@ -493,27 +492,23 @@ If the query content xxx contains special characters, URL encoding is needed, su
## Use with PopClip
You need to install [PopClip](https://pilotmoon.com/popclip/) first, then set a shortcut key for `Easydict`, default is `Opt + D`, then you can open `Easydict` quickly with `PopClip`!
Usage: Select the following code block, `PopClip` will show "Install Easydict", just click it.
You need to install [PopClip](https://pilotmoon.com/popclip/) first, then select the following code block, `PopClip` will show "Install Extension Easydict", just click it. (By **[liziqiang](https://github.com/liziqiang)**)
> Note ⚠️: If you have modified the default shortcut key, you need to modify the shortcut `key combo` in the script below accordingly.
```
# popclip
name: Easydict
icon: iconify:ri:translate
interpreter: zsh
shell script: |
result=$(ps aux | grep Easydict.app | wc -l)
if [[ $result -lt 2 ]];then
open /Applications/Easydict.app
sleep 1
fi
open "easydict://$POPCLIP_TEXT"
```shell
# popclip
name: Easydict
icon: iconify:ri:translate
interpreter: zsh
shell script: |
result=$(ps aux | grep Easydict.app | wc -l)
if [[ $result -lt 2 ]];then
open /Applications/Easydict.app
sleep 1
fi
open "easydict://$POPCLIP_TEXT"
```

> Ref: https://github.com/pilotmoon/PopClip-Extensions#key-combo-string-format
> Ref: https://www.popclip.app/dev/shell-script-actions
## Settings

Expand Down

0 comments on commit ab4c7bc

Please sign in to comment.