-
-
Notifications
You must be signed in to change notification settings - Fork 135
Description
The global scripting setting allows to reuse code in different shortcuts.
Problem : when you have shortcuts for a lot of different services, each needing custom code for handling responses, having everything in one place can become cumbersome to edit. In addition it doesn't feel right to evaluate a lot of unnecessary javascript just to use the one needed function.
It could be great to be able to import some targeted javascript in a shortcut context. Maybe via the Scripting Shortcuts (for example link a scripting shortcut to be evaluated prior to the current shortcut script blocks).
I tried to do something like this with Multi-Shortcut, but each shortcut being evaluated in it's own context, one can't for example define a function in a scripting shortcut and use it in the following regular shortcut (and anyway it would feel a bit cumbersome to do it this way).
Maybe there is another way to achieve targeted code reusing, but I didn't found it for now.