# GitHub Gist for Raycast

URL: https://www.raycast.com/koinzhang/github-gist

> Create, search and display GitHub Gist.

- Install: raycast://extensions/koinzhang/github-gist
- Author: [qofwydxwl](https://www.raycast.com/koinzhang)
- Installs: 402
- Categories: Developer Tools, Productivity
- Updated: 2022-05-09
- Source: https://github.com/raycast/extensions/tree/3b703e4283e2a8a7fad07781540374fbbb74e0b5/extensions/github-gist/

## Commands

- **Search Gist**: Search and display GitHub Gist.
- **Create Gist**: Create GitHub Gist from selection or clipboard.

## README

#### Github Gist

#### Getting Started

This extension brings GitHub Gist support to Raycast through the personal access tokens. To get started, first:

- Login to your  GitHub instance (Eg. [https://github.com](https://github.com))
- Click on your avatar image in the right upper corner
- From the dropdown menu, click on `Settings`
- On the left-hand side, click on `Developer settings`.
- On the left-hand side, click on `Personal access tokens`.
- On this page, we'll create a new access token. Click on `Generate new token` in the upper-right.
- Leave a `note` for your token (Eg. `Raycast`). This will help you identify it in the future.
- You'll need to check the following boxes to ensure this extension can perform properly:
  - `repo`
  - `gist`
  - `user`
- Click `Generate token` and save this value somewhere. **You'll only be able to see this once**.

> Future updates to this extension will offer more functionality that may require additional scopes be defined in this token.

#### Screencast

- Create Gist

https://user-images.githubusercontent.com/36128970/159211152-65b06683-56a3-4db4-842f-3acb05c6ce62.mp4

- Search Gist

https://user-images.githubusercontent.com/36128970/159161962-70adae29-29c5-4026-82d0-19f23b8dcc22.mp4

#### Create Gist

Automatically get the selected text or clipboard and generate a gistfile, you can also add additional gistfiles and finally create a gist.
Once created successfully, you can choose to copy the link or open it in your browser.

#### Search Gist

Search and display gists from GitHub.

- Gist Tag

  - My Gists

  - My Starred

  - All Public Gists


- Action

  - Copy to Clipboard

  - Paste to Active App

  - Copy Gist Link

  - Open in Browser
  - Star Gist *(Only in MyGists)*
  - Delete Gist *(Only in MyGists)*

  - Unstar Gist *(Only in My Starred)*

  - Star Gist *(Only in All Public Gists)*

  - Clone Gist
