replete-repl / replete-ios

ClojureScript REPL iOS app
Eclipse Public License 1.0
396 stars 25 forks source link

Support for Siri shortcuts #127

Open alexgavrisco opened 5 years ago

alexgavrisco commented 5 years ago

Since iOS 12, shortcuts have been added to iOS as a kind of automation tool. It's quite powerful because it offers even third-party integrations, control flow, some basic scripting.

It would be really nice to be able to invoke a cljs script withing a shortcut. I've seen that there's a similar feature supported for a Python app, I think replete would fit perfectly in this use case.

screenshot

dotemacs commented 5 years ago

I believe that this shortcut you're referring to is officially called "URL scheme". And it is already defined here: https://github.com/replete-repl/replete-ios/blob/579bc5c8302b9366bace844073b9cc89855e179a/Replete/Info.plist#L47

You can see that it works if you type in replete:// in Safari browser, it'll open Replete.

The code for handling the actions, arguments and so on, is what is required...

alexgavrisco commented 5 years ago

Not really, I’ve been referring to another type of integration https://developer.apple.com/design/human-interface-guidelines/sirikit/overview/siri-shortcuts/

On Feb 24, 2019, at 5:41 PM, Александар Симић notifications@github.com wrote:

I believe that this shortcut you're referring to is officially called "URL scheme". And it is already defined here: https://github.com/replete-repl/replete-ios/blob/579bc5c8302b9366bace844073b9cc89855e179a/Replete/Info.plist#L47

You can see that it works if you type in replete:// in Safari browser, it'll open Replete.

The code for handling the actions, arguments and so on, is what is required...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

dotemacs commented 5 years ago

My bad, sorry about that

zane commented 3 years ago

This would be even more incredible now that Shortcuts is available on MacOS as well.