Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

A small plugin - aka scrippet - to export code snippets from Snippets as GitHub gists. NOTE: this plugin is now included in Snippets 1.2 (http://www.snippetsapp.com/release-notes)

Notifications You must be signed in to change notification settings

ngs-archives/snippets-gist-scrippet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Snippets to gist plugin

Blablabla

Snippets is a Mac OS X application to to manage - you guessed it right - short reusable pieces of computer source code, also known as snippets.

The Snippets application supports plugins to export code to other code repositories. Support for Pastie, Snipt and Snipplr is build in but I was still missing a GitHub gist export. I took a closer look at the existing 'scrippets' - Snippet's jargon for plugins - and hey, it's all familiar technologies like HTML, JavaScript and even Ruby. Cool! Let's make one myself!

About

You can post gists anonymously without linking you account. Once posted you'll get a public URL with your gist. This gist is anonymous gists so you can not update or remove the gists once they are exported.

You can also link your account with your GitHub API token. You can now post gists under your own username (public or private). You can update or remove the gist later via the GitHub website.

Installation

  1. Download the latest version.
  2. Unzip or untar the downloaded file (both should work out-of-the-box on Mac OS X.
  3. Double click the Gist scrippet plugin icon
  4. The 'Share via gist.github.com' option should show up in your bundle list.

Exporting

  1. Select one or more snippets and choose Scrippets > Share via gist.github.com... 2a. Leave all fields empty for an anonymous gist. 2b. Fill in your username and API token to link this gist with your account.
  2. Confirm you selection.
  3. Copy the snippet URL.

Questions? Bugs? Feedback?

That's where the issue list is for.

Credits

This plugin is heavily based on the plugins found in the Snippets application created by Vadim Shpakovski. I merely copied his work and replaced 'pastie' with 'gist'.

The GitHub authentication feature where you can link gists with your account and mark them as private has been added by Atsushi Nagase. Thanks!

The gist icon used in the plugin is the GitHub favicon I stole... sorry.

About

A small plugin - aka scrippet - to export code snippets from Snippets as GitHub gists. NOTE: this plugin is now included in Snippets 1.2 (http://www.snippetsapp.com/release-notes)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%