From aefc1d3502b84126887e203fe37db02d944c63b0 Mon Sep 17 00:00:00 2001 From: Ziqiang Li Date: Fri, 27 Oct 2023 05:48:00 -0500 Subject: [PATCH 1/2] Update README.md docs: Improve Popclip extension --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7e689b807..b4b0965aa 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 @@ -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 | 开源万岁🎉尽点绵薄之力,感谢! | \ No newline at end of file +| 2023-10-26 | | 10 | 开源万岁🎉尽点绵薄之力,感谢! | From 58b33f2edf852daecc3c747a4340f0ffb5032c33 Mon Sep 17 00:00:00 2001 From: Ziqiang Li Date: Fri, 27 Oct 2023 05:48:54 -0500 Subject: [PATCH 2/2] Update README_EN.md docs: improve Popclip extesion --- README_EN.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README_EN.md b/README_EN.md index bacf9d19d..11093316d 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 @@ -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 | 开源万岁🎉尽点绵薄之力,感谢! | \ No newline at end of file +| 2023-10-26 | | 10 | 开源万岁🎉尽点绵薄之力,感谢! |