Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.74 KB

README.md

File metadata and controls

37 lines (22 loc) · 1.74 KB

Gist Async Save

This makes it possible to save Gists ansychronously without even leaving the edit mode. It also adds a "preview" window to see what your gist currently looks like when not in edit mode (e.g. to look at parsed markdown etc).

It comes as a user script that can run in Chrome and might run in Firefox using Greasemonkey.

Why?

I took a lot of notes in a Gist and wanted to save it every now and then which is a pain in the ass for long Gists with the whole save/view/edit/find place of last edit rountrip you have to take normally.

Install

The Clicky Clicky Way

  • Click here
  • Click on Continue at the bottom of your browser
  • Confirm that the script is allowed to access data from any page you surf at https://gist.github.com/ by clicking Add

Manually

  • Download the gist-async.save.user.js
  • Drag the downloaded file to your Chrome browser
  • Click on Continue at the bottom of the browser
  • Confirm that the script is allowed to access data from any page you surf at https://gist.github.com/ by clicking Add

Usage

The scripts adds another save button and a preview window (on the right side of the browser window) to each Gist's edit page. You can also save and toggle the preview with the keyboard shortcuts:

  • ⌘ + s or Ctrl + s: Save Gist
  • ⌘ + e or Ctrl + e: Toggle preview window

Thanks!

The script uses jQuery UI and keymaster.js which both gets injected into the page by an awesome script I found on Stack Overflow.

Thank you guys! 👏