Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bunn/xgist

Xcode extension to send code to GitHub's Gist
https://github.com/bunn/xgist

developer-tools gist github-gist swift xcode xcode-extension xcode-plugin

Last synced: 9 days ago
JSON representation

Xcode extension to send code to GitHub's Gist

Awesome Lists containing this project

README

        

# Xgist
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!

# Authentication (Optional)
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.

![screenshot](./other/login.png)

After you login you'll need to restart Xcode so it will give you the authenticated gist option

![screenshot](./other/menuOptions.png)

Note that Xcode might ask to use your keychain since that's how your GitHub access token is stored.

![screenshot](./other/keychain.png)

[Youtube demo video](https://youtu.be/LtyPq-bzjM0)

![screenshot](./other/demo.gif)

# Installation

# Easy way
Thanks to [Rambo](https://twitter.com/_inside) you can download a signed version of the app [here](https://github.com/Bunn/Xgist/releases/latest):

After opening it, you might need to go to the system preferences app and enable Xgist plugin.

![screenshot](./other/preferences.png)
![screenshot](./other/xgist_pref.png)

# Manual way
*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*

1. Clone the repo and open ``Xgist.xcodeproj``;
2. Enable target signing for both the Application and the Source Code Extension using your own developer ID;
3. Product > Archive;
4. Right click archive > Show in Finder;
5. Right click archive > Show Package Contents;
6. Open Products/Applications;
7. Drag ``Xgist.app`` to your Applications folder and double click on it;
8. Xgist macOS app will open and install the extension;
9. Close Xgist.app
10. Done.