Gist

by Jun Lin
5
4
3
2
1
Score: 52/100

Description

Category: 3rd Party Integrations

The Gist plugin for Obsidian allows you to embed GitHub Gists in your notes, providing an easy way to share and collaborate on code snippets. With this plugin, you can render Gists with just a simple fenced code block, specifying either the Gist ID or both the username and Gist ID. You can also specify which files within the Gist to display, making it perfect for referencing specific parts of a large codebase. The plugin is easy to install, either through the Obsidian app store or manually by copying files into your vault's plugins directory.

Reviews

No reviews yet.

Stats

91
stars
10,268
downloads
3
forks
1,794
days
836
days
836
days
2
total PRs
0
open PRs
1
closed PRs
1
merged PRs
7
total issues
2
open issues
5
closed issues
5
commits

Latest Version

2 years ago

Changelog

  • Fixes the gist style will be blocked by CSP.
  • Fixed CORS issues (#9).

README file from

Github

Obsidian GitHub Gist Plugin

GitHub release badge

This is a plugin to render the GitHub Gist in Obsidian.

Example

The gist fenced code blocks will be rendered as a embed Gist view.

  1. With only the Gist ID:
```gist
30efbfd874fb1a16176d3f638a1e712a
```
  1. With the username and Gist ID:
```gist
linjunpop/30efbfd874fb1a16176d3f638a1e712a
```
  1. Specify to only show a single file in the Gist:
```gist
linjunpop/30efbfd874fb1a16176d3f638a1e712a#math.ex
30efbfd874fb1a16176d3f638a1e712a#concat.ex
```

Example Image

Installation

Installing from the Obsidian App

Search "Gist" in Settings -> Community plugins, you can find and install this plugin.

You can check https://help.obsidian.md/Advanced+topics/Third-party+plugins#Discover+and+install+community+plugins for an official guide.

Manually installing the plugin

Find the latest release: https://github.com/linjunpop/obsidian-gist/releases, then copy over main.js, manifest.json, styles.css to your vault's .obsidian/plugins/obsidian-gist directory (ex. VaultFolder/.obsidian/plugins/obsidian-gist/).

Development

Develop the plugin locally

  • Clone this repo to a local development folder. For convenience, you can place this folder in your .obsidian/plugins/obsidian-gist folder.
  • Install NodeJS, then run npm i in the command line under your repo folder.
  • Run npm run dev to compile your plugin from main.ts to main.js.
  • Make changes to main.ts (or create new .ts files). Those changes should be automatically compiled into main.js.
  • Reload Obsidian to load the new version of your plugin.
  • Enable plugin in settings window.

Releasing new releases

  • Update the manifest.json with a new version number, such as 1.0.1, and the minimum Obsidian version required for your latest release.
  • Update the versions.json file with "new-plugin-version": "minimum-obsidian-version" so older versions of Obsidian can download an older version of your plugin that's compatible.
  • Create new GitHub release using your new version number as the "Tag version". Use the exact version number, don't include a prefix v.
  • Upload the files manifest.json, main.js, styles.css as binary attachments.
  • Publish the release.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Save as Gist
4 years ago by ghedamat
Enveloppe
4 years ago by Mara-Li
Enveloppe helps you to publish your notes on a GitHub repository from your Obsidian Vault, for free!
Share as Gist
4 years ago by timrogers
An Obsidian (https://obsidian.md/) plugin for sharing your notes as a GitHub gist - either privately or publicly.
Emo
3 years ago by yaleiyale
Use image/file hosting in Obsidian by clipboard or draging file. Obsidian 图床聚合 & Github上传器
GitHub Issue Augmentation
3 years ago by samprintz
GitHub Embeds
3 years ago by Gino Valente
Embed GitHub issues, PRs, and code snippets directly in Obsidian
GitHobs
2 years ago by GabAlpha and MarcoG
Use Obsidian as Github issue editor! A simple plugin to create Github issues directly from Obsidian with logic taken from Git
GitHub Sync
2 years ago by Kevin Chin
Sync Obsidian vault to personal GitHub
GitHub Link
2 years ago by Nathonius
Gistr
2 years ago by Aetherinox
Obsidian.md plugin which allows you to use your notes to embed, create, and update gists for Github and Opengist. Light & dark theme support, create / update public & private gists either manually or with autosave.
Fit
2 years ago by joshuakto
File gIT (FIT) to sync your files across mobile and desktop devices using GitHub.
Github Copilot
2 years ago by Vasseur Pierre-Adrien
A bridge between Obsidian and Github Copilot
Import GitHub Readme
2 years ago by Chasebank87
Vault to blog
2 years ago by barkstone2
Automation tool of making react SPA blog by obsidian vault.
Publish and GitHub URL
4 years ago by kometenstaub
Copy or open the Obsidian Publish URL of a note. You can also open its Git commit history on GitHub.
Quick Share Note to gist
a year ago by Por Chainarong Tangsurakit
"Quick Share Note to gist" is an Obsidian plugin that lets you publish notes to GitHub gist and upload images to Imgur.
GitHub Gitless Sync
a year ago by Silvano Cerza
Sync a GitHub repository with vaults on different platforms without requiring git installation
GitHub Stars
a year ago by Flying Nobita
Obsidian plugin that displays GitHub star ⭐ counts next to repository links in your notes, in Reading View, Live Preview, and embedded markdown.
Open in GitHub
a year ago by Muurphy Chen
This is an Obsidian plugin designed to open project or files directly in GitHub via your browser.
GitHub Tracker
a year ago by schaier-io
GitHub Integration
a year ago by Kirill Zhuravlev
Plugin that fetch your github stars into notes
Github Issues
10 months ago by LonoxX
An Obsidian plugin that integrates with GitHub to track issues and pull requests directly in your vault.
GitHub Tasks
8 months ago by Mike Thicke
Obsidian plugin to sync GitHub issues and PRs to Obsidian TODOs
NotePix
8 months ago by Ayush Parkara
NotePix automatically uploads images, screenshots from your Obsidian vault to a designated GitHub repository. It then seamlessly replaces the local link with a fast URL, keeping your vault lightweight and portable.
GH Links Shortener
6 months ago by David Barnett
Obsidian plugin to set shortened link text for pasted GitHub URLs