Skip to content

User script to save Gists asynchronously while you can stay in edit mode.

Notifications You must be signed in to change notification settings

walski/gist-async-save

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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! 👏

About

User script to save Gists asynchronously while you can stay in edit mode.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published