pilotmoon / PopClip-Extensions

Source code for extensions in the official PopClip Extensions directory.
https://www.popclip.app/extensions/
MIT License
1.92k stars 442 forks source link

Implement Dictionary action using macOS system "Look Up" pop-up #1106

Open marcuskwan opened 5 years ago

marcuskwan commented 5 years ago

Hello, I was wondering if it was possible for the dictionary extension to instead open the definition within when inside a browser, rather than inside the dictionary app. For example, in safari, the "lookup" function pops open a small window. This would be really useful as you would be able to see the definition within your browser and not be switched to the dictionary app.

pilotmoon commented 4 years ago

Unfortunately, macOS does not (yet) provide an API for applications to trigger the "Look Up" popup programatically. Therefore, I can't make PopClip do it. However, if it ever becomes possible, it will be a likely update since I get a lot of requests for this.