r/Scriptable • • Nov 04 '20

Help Is there a way to search text in your script?

18 Upvotes

10 comments sorted by

7

u/Sethu_Senthil Nov 04 '20

Do you mean like "control f" to find certain keywords in your code? If so you can dynamically load your script in via GitHub by fetching the response as a string and putting it in an eval() statement. This way you can code using via GitHub on your browser or your preferred code editor which will all have the "control f" search feature

8

u/DarkInDeed Nov 04 '20

What about searching the code on scriptable on phones. Sorry but am v new to this

2

u/Sethu_Senthil Nov 04 '20

You can visit the GitHub website on Safari. Safari has the find feature (under the share button)

1

u/freeluv Nov 05 '20

Yeah kinda of like Ctrl F. I’ll look into your suggestion. Thanks!

5

u/fightinghamez Nov 04 '20

Not that I could find. I’ve been using Kodex as my main editor, then jumping back to Scriptable to run / debug.

1

u/freeluv Nov 05 '20

Cool I haven’t heard of Kodex. I may do the same

5

u/Lathryx Nov 04 '20

This would definitely be a great feature!

3

u/[deleted] Nov 04 '20

It would be helpful to search for „words“ in the script or view with the line of the script.

3

u/FifiTheBulldog script/widget helper Nov 04 '20

Search text? What do you mean? With a search engine?

2

u/mvan231 script/widget helper Nov 04 '20

You'd have to copy the code elsewhere to do this type of searching. It could be done in Notes app