-
Notifications
You must be signed in to change notification settings - Fork 3
Save snippets in XCode #3
Comments
Yeah and then I have an idea to initialize git repo in Xcode snippets folder and sync it with github repo. Right now I do that manually but it would be amazing to do that in semi-automatic way. |
That would be amazing! Automagic stuff are exciting 😎 |
We should do it. |
@pronebird any plan on how achieving this? Once that's done, we could sync Gist snippets directly into Xcode's snippet library, and optionally, any gist or slack snippet shared, would be saved directly unto the library if selected by the user in the form. Makes sense? Would be great to know how does your manual workflow work right now. |
@dzenbot I am pretty swamped with work at the moment. Currently I commit and push stuff in git repo that I created at |
I just pushed an initial work on this: The only remaining thing is to adapt the |
I am slowly pushing more commits to my own fork. I've created a simple NSOperation based Git repository manager. Currently it's able to initialize snippets repository, stage and commit everything. Push/pull aren't possible yet because I need UI to ask for remote repository URL. I haven't figured out the way to fail NSOperations yet when git fails to execute the command. Error reporting should be improved in general. |
It would be really useful to also be able to save code snippets into the built-in snippet browser of XCode. There must be some private APIs to be able to achieve this easily 🙏
The text was updated successfully, but these errors were encountered: