diff --git a/README.md b/README.md index 7ba38f1dc..0d72e7268 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README_EN.md b/README_EN.md index 38974e95c..a85ddb804 100644 --- a/README_EN.md +++ b/README_EN.md @@ -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