bunn / xgist Goto Github PK
View Code? Open in Web Editor NEWXcode extension to send code to GitHub's Gist
License: MIT License
Xcode extension to send code to GitHub's Gist
License: MIT License
The extension should only ask for keychain access when signing in or if the user has a token stored.
Currently it will ask on the first run since GitHubAPI().isAuthenticated
is executed to define what options the extension should display to the user on SourceEditorExtension.swift
Currently, the extension uses the content UTI to set the extension of the file on Gist, it would be better to detect the language based on the actual contents of the snippet.
This is kind of related to #5 : we should add automatic updates to the app. This is kind of problematic because the app is just a container for the Xcode extension, but I think it's doable.
I always use Sparkle on my apps (no need for a package manager, it works fine with just submodules haha). It only requires a XML file with feed of updates and the binary releases, both can be stored on the repo itself.
I'd be cool to show on the README how to install the Extension since Xcode extensions can get tricky. Please take a look on how these guys did it.
Once this is fixed, I'll be able to approve your PR on AwesomeiOS
It's necessary to have a macOS developer account to sign a binary for release. I don't have one ๐
Xcode save the snippets on this path
~/Library/Developer/Xcode/UserData/CodeSnippets
And this is a snippet file format:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>CodeBlock</string>
</array>
<key>IDECodeSnippetContents</key>
<string> //CODE GOES HERE
</string>
<key>IDECodeSnippetIdentifier</key>
<string>5B59E4B8-2705-48CF-8104-F2EF4C6F7EE4</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Objective-C</string>
<key>IDECodeSnippetTitle</key>
<string>SPIPPET_TITLE</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>0</integer>
</dict>
</plist>
The app could have a way for the user to select gists from an UI or maybe having some special "tag" on the gists to list as snippets.
Would be good to have an option to sign in on GitHub so the user could choose to save the gists on his/her account instead of always being a anonymous gist.
This will probably require an macOS app for the settings and actual login
It'd be cool to show some sort of UI to the user when the Gist has finished uploading and the URL is available on the clipboard.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.