replete-repl / replete-ios

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

replete:// URL scheme added to the app #97

Closed dotemacs closed 7 years ago

dotemacs commented 7 years ago

Added the URL scheme to the app replete:// so that the app can be invoked from other apps.

To test this:

Why?

With great iOS apps like Workflow you can create your own workflows, read "custom scripts", which call out to various other apps which support URL schemes.

One notable app that can be used this way is Pythonista which allows you create your own Python scripts.

Well, I think it would be great for Replete to be able to do the same, only with ClojureScript:

(Note: the above is just an example, the argument passing and script invocation can be done in any other fashion, REST-ful or not...)

My change just adds the ability for the arguments to be passed in to Replete. But before I try to attempt to add the rest of the functionality, I'd like to ask, is this something that would be interesting to have?

Thanks

dotemacs commented 7 years ago

For example to invoke a script foo, which has a function my-function that would be invoked like so in the REPL:

(my-function arg1 arg2)

the syntax could be

replete://foo/(my-function%20arg1%20arg2)

or with the encoding:

replete://foo/%28my-function%20arg1%20arg2%29

mfikes commented 7 years ago

Thanks @dotemacs !