Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Popclip extension installation. #197

Merged
merged 2 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,16 @@ Easydict 支持 URL scheme 快速查询:`easydict://xxx`,如 easydict://good

```
# popclip
name: Easydict
icon: square E
key combo: option D
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"
```

> 参考:https://github.com/pilotmoon/PopClip-Extensions#key-combo-string-format
Expand Down Expand Up @@ -656,4 +663,4 @@ Easydict 作为一个免费开源的非盈利项目,目前主要是作者个
| 2023-09-24 | Austen | 10 | 支持开源作者 |
| 2023-10-19 | DANIELHU | 7.3 | 感谢开源,希望能加入生词本功能。(后面会加,请等待 [33](https://github.com/tisfeng/Easydict/issues/33)) |
| 2023-10-25 | tzcsky | 10 | 非常好的软件 |
| 2023-10-26 | | 10 | 开源万岁🎉尽点绵薄之力,感谢! |
| 2023-10-26 | | 10 | 开源万岁🎉尽点绵薄之力,感谢! |
13 changes: 10 additions & 3 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,15 @@ Usage: Select the following code block, `PopClip` will show "Install Easydict",
```
# popclip
name: Easydict
icon: square E
key combo: option D
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
Expand Down Expand Up @@ -651,4 +658,4 @@ If you don't want your username to be displayed in the list, please choose anony
| 2023-09-24 | Austen | 10 | 支持开源作者 |
| 2023-10-19 | DANIELHU | 7.3 | 感谢开源,希望能加入生词本功能。(后面会加,请等待 [33](https://github.com/tisfeng/Easydict/issues/33)) |
| 2023-10-25 | tzcsky | 10 | 非常好的软件 |
| 2023-10-26 | | 10 | 开源万岁🎉尽点绵薄之力,感谢! |
| 2023-10-26 | | 10 | 开源万岁🎉尽点绵薄之力,感谢! |