dennis-tra / alfred-dict.cc-workflow

🌍 Alfred 4/5 workflow to get translations from dict.cc
137 stars 4 forks source link

Add hotkeys to trigger the workflow #13

Closed muffix closed 11 months ago

muffix commented 1 year ago

Adds keyboard hotkeys to trigger the workflow for the current selection or the clipboard contents. Also adds a universal action trigger if the selection is text (as opposed to file or URL).

To do that, I first added the existing info.plist from the latest release. 6b721f3 has the interesting changes.

The keyboard shortcuts are not part of the info.plist and even if they were, they would be ignored when imported according to the docs:

Where workflows contain hotkeys, the hotkeys are stripped out when you import the workflow, to ensure that these don't clash with your existing hotkeys. You can set these easily by double-clicking the hotkey object to show the drop-down where you can set your hotkey.

image

Relates to: #12

dennis-tra commented 1 year ago

So cool, I actually didn't use the Universal Actions feature of Alfred at all! So handy :)

Thanks for the contribution! Besides my comment above this looks good to me 👍 I will definitely use this :D

muffix commented 11 months ago

Apologies, I only saw your comment now. Addressed the issue in 44e6115.