r/Scriptable • u/gebet0 • May 28 '21
Script Scriptable + VSCode = ❤️
Hello everybody! Now I am working on one simple project that will allows you to create your scriptable apps using VSCode, main features is:
- autocomplete
- hotkey to run scriptable(CMD+SHIFT+B)
- ability to sync your scripts to git repository as LINK(it will be synced!! between app and git(on push)).
You can check it now(and maybe give a stars for it😄): https://github.com/gebeto/scriptables
Work in progress, and I am just wondering is it will be interesting for any of you? Feel free to ask any questions or make some suggestions😄
99
Upvotes
5
u/FifiTheBulldog script/widget helper May 29 '21
Neat! I must try this. The editor in Scriptable, for as nice as it is on iOS, is not great on macOS. VSCode ftw.
I’m not sure if you’re aware of this, but Scriptable’s type definitions are on DefinitelyTyped, complete with JSDoc. Perhaps those could be incorporated somehow? Just a thought.
Amazing work so far! I especially love the way you’ve done the symbolic link to the scripts directory for easy access.
2
u/gebet0 May 28 '21
How features was implemented:
Autocomplete - js script that parse documents page and generate TypeScript .d.ts file with types that are parsed by VSCode and shown in editor.
Run script - Created VSCode default build task that use URLSchema for running script by current file name in Scriptable app.
Git Sync - using `ln` command without `-s` parameter to create hard link to the file in iCloud, so it is syncing between iCloud and project folder
6
u/Sethu_Senthil May 28 '21
This is what I signed up for!
1
u/veneno11 May 28 '21
Sounds good. The video is private however.
I currently edit scripts using VSCode. I’d really like auto complete. I’m gonna give this a try. And what do you mean by run scriptable?
1
u/New_Conversation9147 Feb 10 '24
How tf do yall get Scriptable on MacOS???
3
u/birrywoo May 28 '21
Oh heck yes!!! 😎😎😎
2
u/[deleted] May 29 '21
Amazing !! Sure, have your star!
2
u/xkhen0017 May 29 '21
You got my respect mate! Looks awesome!
2
u/Nicolas-kings007 May 30 '21
I try
1
u/krillik08 Jun 10 '21
This is awesome! Checking it out now!
1
u/Actual_Set9804 Jun 14 '21
It‘s a nice news!
1
u/Obvious-Appeal8527 Nov 01 '24
Free fire headshot