jkordish / gist-it

Create Gists inside Atom

Home Page:https://atom.io/packages/gist-it

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gist It

Quickly and easily post files from Atom to GitHub Gists.

Commands

  • Gist Current File (⌥⌘G) Gists the contents of the current file in the editor

  • Gist Selection (⇧⌥⌘G) Gists the contents of the current selection. If more than one selection is active, uses the most recent one.

  • Gist Open Buffers Creates a gist with the content of all buffers in the active workspace

Using Your GitHub Account

Gist It will post gists anonymously by default, to post to your own GitHub account generate a new token with the gists scope and copy it into the package's preferences (see the section below if you have trouble finding these).

If you keep your Atom configuration in a public repo, or otherwise don't want your token to reside in the main user config, you can instead put it in ~/.atom/gist-it.token. You can then add this file to a .gitignore file to keep it out of public repos.

Preferences

To configure your preferences for Gist It, open the Atom preferences with ⌘, and select 'Gist It' from the sidebar. From there you can modify a variety of settings:

  • New Gists Default To Private (Boolean) By default, new gists will be public. you can change this option manually when creating the gist, or set it to instead default to private by enabling this option.

  • User Token (String) This field allows the user to enter a custom generated OAuth token to have Gists attributed to their GitHub account. A token can be created here and must include the gist scope.

About

Create Gists inside Atom

https://atom.io/packages/gist-it

License:MIT License