While PopClip does support ChatGPT extension, in my opinion it lacks sufficient power. Therefore, I aim to further customize its functionalities to better suit my needs. As a result, I have attempted to integrate all three together.
- OpenAI API key
- PopClip
- Keyboard Maestro
- jq
- Node.js 16+
- yarn
- Translate to Chinese
- Translate to English
- Polish
- Summarize
- AMA (ask me anything)
- Extract keywords
git clone https://github.com/daCapricorn/ChatGPT-PopClip-Keyboard-Maestro-Mac.git ~/.km
cd ~/.km
git submodule update --init --recursive
cd openai-assistant && yarn
- Modify call_openai.sh to set custom paths of Node.js and jq.
open ~/.km
- Double click ChatGPT Macros.kmmacros, ChatGPT Menu Macros.kmmacros and UI Macros.kmmacros to import them to Keyboard Maestro.
- Set OpenAI API key in ChatGPT Macros -> Start Call API.
- Enable ChatGPT Macros and ChatGPT Menu Macros.
- Install custom PopClip extension via script
# popclip name: OpenAI Icon: iconify:ri:openai-fill javascript: | popclip.pressKey('command C'); popclip.openUrl('kmtrigger://macro=9FA60E19-EBBF-4A6C-A071-AAD33DC015FB')
- Done. Try it :)
- Bitcoin: 1Dy2inaXtHczPvu5HnHinpdHtoWkLYMKQ6
- Ethereum: 0xB2d511611EaD5bC5B3a101DC9E7658CfBcf57a58