Share as Gist

by timrogers
5
4
3
2
1
Score: 56/100

Description

Category: 3rd Party Integrations

The Share as Gist plugin allows users to share their Obsidian notes as GitHub Gists, offering options for both public and private sharing. It supports GitHub.com and GitHub Enterprise Server, enabling users to create, update, and delete Gists directly from Obsidian. The plugin includes features like automatic updating of Gists when notes are edited and customizable settings to include or exclude front matter in shared content. Additionally, it offers secure handling of GitHub personal access tokens, ensuring minimum required permissions for enhanced security.

Reviews

No reviews yet.

Stats

107
stars
9,535
downloads
9
forks
1,417
days
1
days
445
days
834
total PRs
0
open PRs
511
closed PRs
323
merged PRs
24
total issues
10
open issues
14
closed issues
142
commits

Latest Version

a year ago

Changelog

  • Add "Include table of contents" option, defaulting to off, which adds a table of contents to your gist when sharing

README file from

Github

"Share as Gist" Obsidian plugin

This plugin for Obsidian (https://obsidian.md) allows you to share your notes as GitHub Gists

  • 🔒 Share your notes privately or publicly
  • 💼 Works with GitHub.com and GitHub Enterprise Server
  • 🔄 Update your gist when you make changes to your notes
  • 🗑️ Delete a gist if you change your mind
  • 📜 Optionally include a table of contents in your gist for easy navigation

Usage

  1. Install the plugin.
  2. Create a GitHub personal access token on GitHub.com or your GitHub Enterprise Server instance. You can use a classic personal access token (PAT) with the gist scope, or a new fine-grained token with read-write access to your Gists.
  1. Open "Settings" in Obsidian, then go to "Share as Gist" in the "Plugin Options" tab.
  1. Paste the access token into the relevant field. There are different sections for GitHub.com and GitHub Enterprise Server.

  2. If you're using GitHub Enterprise Server, fill in the API base URL of your instance, ending with /api/v3 (e.g. https://github.business.com/api/v3).

  3. To share a note, open the Command Palette and type "gist". You'll see commands for creating a public and private link. Pick the one you want and hit enter.

  1. Optionally, add a custom description for your gist, and hit Enter. You can skip this and accept the default by hitting Enter immediately.

Screenshot 2024-05-16 at 20 35 55

  1. Your gist will be created, and the URL for sharing will be added to your clipboard.

  2. Make a change to your note.

  3. If the "Enable auto-saving Gists after edit" setting is turned on, your changes will automatically be reflected in your gist. If not, you can use the "Share as [public|private] gist on GitHub.com" command" again to update your gist, or create a fresh one.

  4. If you want to get the URL of your gist after creating it, open the Command Palette and type "gist". Pick the "Copy gist URL" command. If you have multiple gists for your note, you'll have to pick which one you want the URL for.

  5. To open your gist after creating it, open the Command Palette and find the "Open gist" command. If you have multiple gists for your note, you'll have to pick which one you want to open.

  6. To delete a gist after creating one, open the Command Palette and find the "Delete gist" command. If you have multiple gists for your note, you'll have to pick which one you want to throw out.

Customisable settings

  • Enable updating gists after creation (enabled by default): Allow gists to be updated after creation. To enable this to work, information about the gists you create will be stored on notes as front matter (properties).
  • Include front matter in gists (disabled by default): Whether your gists should include frontmatter (properties). If this is disabled, the front matter will be stripped from your gists.
  • Enable auto-saving Gists after edit (disabled by default): Whether your gists should be automatically updated when you save your note. If this is disabled, you can update your gists automatically with the normal "share" command.
  • Enable auto-save notice (disabled by default): Whether a notice should be displayed when your gists are automatically updated. This option is only relevant if the "Enable auto-saving Gists after edit" option above is turned on.
  • Include table of contents (disabled by default): Whether to automatically generate and include a table of contents at the start of each gist

Securing your GitHub personal access token(s)

Your GitHub access token(s) will be stored in Obsidian's localStorage.

This means that it will not be stored in a file and will not be backed up or synced with the rest of your Vault. But it is theoretically possible for other Obsidian plugins to access it.

For your security, you should make sure that you give your personal access token the lowest possible permissions. This will mean that your token will not have access to your code or other sensitive data.

Contributing

  1. Clone this repo into the .obsidian/plugins directory in your Obsidian vault.
  2. Navigate to the obsidian-share-as-gist directory you've just cloned.
  3. Install the dependencies by running npm i.
  4. Start a process to automatically build your plugin when you make changes by running npm run dev.
  5. Make changes, and test them in Obsidian. You will have to manually reload the plugin from the "Community plugins" screen when you make a change.
  6. Push your changes to the repo if you have access or your own fork, and create a pull request.

Releasing

  1. Work out the next version number. We use semantic versioning.
  2. Add an entry to CHANGELOG.md, describing your changes.
  3. Update the version number in package.json.
  4. Update versions.json, defining what minimum Obsidian version your plugin is compatible with. In general, copying the last entry in the file should be fine.
  5. Run npm run version.
  6. Commit manifest.json and package.json. In the commit message, make the version number the title, (e.g. 1.0.1) and copy your changelog entry into the body.
  7. Tag your commit with the version number, e.g. git tag -a 1.0.1 -m '1.0.1'.
  8. Push your changes, including tags.
  9. A workflow will automatically run in GitHub Actions to build and publish a release.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Emo
3 years ago by yaleiyale
Use image/file hosting in Obsidian by clipboard or draging file. Obsidian 图床聚合 & Github上传器
Enveloppe
4 years ago by Mara-Li
Enveloppe helps you to publish your notes on a GitHub repository from your Obsidian Vault, for free!
Fit
2 years ago by joshuakto
File gIT (FIT) to sync your files across mobile and desktop devices using GitHub.
GH Links Shortener
6 months ago by David Barnett
Obsidian plugin to set shortened link text for pasted GitHub URLs
Gist
5 years ago by Jun Lin
📒 Gist View for Obsidian(https://obsidian.md)
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.
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 Copilot
2 years ago by Vasseur Pierre-Adrien
A bridge between Obsidian and Github Copilot
GitHub Embeds
3 years ago by Gino Valente
Embed GitHub issues, PRs, and code snippets directly in Obsidian
GitHub Gitless Sync
a year ago by Silvano Cerza
Sync a GitHub repository with vaults on different platforms without requiring git installation
GitHub Integration
a year ago by Kirill Zhuravlev
Plugin that fetch your github stars into notes
GitHub Issue Augmentation
3 years ago by samprintz
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 Link
2 years ago by Nathonius
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.
GitHub Sync
2 years ago by Kevin Chin
Sync Obsidian vault to personal GitHub
GitHub Tasks
8 months ago by Mike Thicke
Obsidian plugin to sync GitHub issues and PRs to Obsidian TODOs
GitHub Tracker
a year ago by schaier-io
Html Server
3 years ago by Pr0dt0s
Obsidian plugin to serve a vault as an html site.
HTTP Link Maker
8 months ago by Kenneth Christensen
Create HTTP links for Obsidian notes that work on all your devices
Import GitHub Readme
2 years ago by Chasebank87
Infostacker Note Publish
2 years ago by Taskscape LTD, Patryk Nowak, Kacper Pabianiak
Infostacker plugin for Obisidian
Linked Note Exporter
9 months ago by the-c0d3r
Obsidian plugin to export a note along with all its attachments and linked notes—cleanly, conveniently, and ready to share.
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.
Obsius Publish
4 years ago by Jon Grythe Stødle
Easily publish notes to the web This plugin integrates with obsius.site to publish markdown notes on the web.
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.
Pickly PageBlend
3 years ago by Dmitrii Mitrichev
The easiest way to share your Obsidian notes
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.
Publish to Discourse
a year ago by woodchen
Obsidian plugin for publishing articles to forums built with Discourse. obsidian插件, 用于把文章发布到使用discourse搭建的论坛.
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.
Quote Share
3 years ago by DuocNV
Generate beautifull image from Obsidian.
Save as Gist
4 years ago by ghedamat
Stashpad Docs
2 years ago by Stashpad
The Stashpad Docs plugin for Obsidian.
Strip Internal Links
2 years ago by Adi Ron
A simple Obsidian plugin to strip internal links from files
Vault to blog
2 years ago by barkstone2
Automation tool of making react SPA blog by obsidian vault.
WhatsApp export note
a year ago by JoaoEmanuell
Obsidian plugin to export notes for whatsapp