Skip to content

Commit

Permalink
Update Popclip extension installation. (tisfeng#197)
Browse files Browse the repository at this point in the history
* Update README.md

docs: Improve Popclip extension

* Update README_EN.md

docs: improve Popclip extesion
  • Loading branch information
liziqiang authored Oct 27, 2023
1 parent 5798357 commit a5ffaed
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
13 changes: 10 additions & 3 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
11 changes: 9 additions & 2 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

0 comments on commit a5ffaed

Please sign in to comment.