thomashempel / AlfredGoogleTranslateWorkflow

A workflow for Alfred that implements translation from any language to any other language that is supported by google
MIT License
400 stars 36 forks source link

Question: How to setup shortcut key for an action #13

Closed jothirams closed 10 years ago

jothirams commented 10 years ago

Hello,

This is more a question, than a issue.

Is there a way to setup a shortcut for any particular translation such as "gd de>en " and then I can enter the text that I want.

Best Regards,
Joe.

thomashempel commented 10 years ago

Hi,

I don't know any way to do that right now. :/ I think that had to be an Alfred feature.

Greets, Thomas

jothirams commented 10 years ago

Thanks. Posted a question on alfred forum: http://www.alfredforum.com/topic/5007-shortcut-key-to-invoke-a-workflow-with-arguments/

And Alfred does have this feature. Quoting the response from the link:

"In that workflow, you can add a Trigger->Hotkey item to the front of the Keyword (or Script Filter) item (don't forget to connect them). In the Hotkey properties, set your hotkey of choice then for the "Argument", select "Text" and then in the text field, add whatever text you want passed there by default"

And this works.

thomashempel commented 10 years ago

Nice! ;)