Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months ago
JSON representation
Xcode extension to send code to GitHub's Gist
- Host: GitHub
- URL: https://github.com/Bunn/Xgist
- Owner: Bunn
- License: mit
- Created: 2016-12-12T11:27:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-27T14:02:49.000Z (over 7 years ago)
- Last Synced: 2024-04-24T19:26:32.762Z (6 months ago)
- Topics: developer-tools, gist, github-gist, swift, xcode, xcode-extension, xcode-plugin
- Language: Swift
- Size: 2.74 MB
- Stars: 76
- Watchers: 5
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xcode-extensions - Xgist - Xcode Source Editor Extension that sends code to GitHub's [Gist](https://gist.github.com) (The list / Collaborations with internal/external services)
- awesome-ios - XGist - Xcode extension which allows you to send your text selection or entire file to GitHub's Gist and automatically copy the Gist URL into your Clipboard. (Xcode / Extensions)
- awesome-ios-star - XGist - Xcode extension which allows you to send your text selection or entire file to GitHub's Gist and automatically copy the Gist URL into your Clipboard. (Xcode / Extensions)
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.