Xgist is a Xcode extension to send code to GitHub's Gist. The extension will send your code selection to Gist and automatically copy the Gist URL into your Clipboard.
Be aware that it will replace your current clipboard with the Gist URL!
By default Xgist will post your gists as anonymous, but once you open the .app you'll see a login form where you can login to your GitHub account and post authenticated gists.
After you login you'll need to restart Xcode so it will give you the authenticated gist option
Note that Xcode might ask to use your keychain since that's how your GitHub access token is stored.
Thanks to Rambo you can download a signed version of the app here:
After opening it, you might need to go to the system preferences app and enable Xgist plugin.
Note that by choosing this way you'll need to create your own GitHub app and add your app ID and Secret into the GitHubCredential.swift
file
- Clone the repo and open
Xgist.xcodeproj
; - Enable target signing for both the Application and the Source Code Extension using your own developer ID;
- Product > Archive;
- Right click archive > Show in Finder;
- Right click archive > Show Package Contents;
- Open Products/Applications;
- Drag
Xgist.app
to your Applications folder and double click on it; - Xgist macOS app will open and install the extension;
- Close Xgist.app
- Done.