dillinger icon indicating copy to clipboard operation
dillinger copied to clipboard

feature request: Gist support

Open millermedeiros opened this issue 13 years ago • 15 comments

based on 2 twits from @leaverou:

Wish I had time for a Markdown version of dabblet: An online md editor that saved to github gists. Can't seem to find anything like it :( https://twitter.com/#!/LeaVerou/status/154585603516809218

and

Dillinger http://dillinger.io/ looks quite interesting, although it's integrated with github repos, not gists. https://twitter.com/#!/LeaVerou/status/154587930374049793

millermedeiros avatar Jan 04 '12 18:01 millermedeiros

If the API supports it, which it does, should be about 1/2 day to add it. Most of the boilerplate code for communicating with the Github API is the same. Here's how I fetch a markdown file:

https://github.com/joemccann/dillinger/blob/master/app.js#L358-400

The clientside wiring is super modular too:

https://github.com/joemccann/dillinger/blob/master/public/js/dillinger.js#L1331-1372

Pull requests gladly accepted!

joemccann avatar Jan 04 '12 19:01 joemccann

I probably won't do it since I'm not using Dillinger or creating lots of Gists (I'm using Vim to edit my mdown files..). I added the feature request since I saw the twits from @leaverou and I'm not sure if she realized that the project was open source and to let you know that some people would like this feature. cheers.

millermedeiros avatar Jan 04 '12 19:01 millermedeiros

Hey no worries! I really appreciate you taking the time to aggregate the tweets into a feature request. I'll probably just build it myself, but always open to other contributors. Thanks!

joemccann avatar Jan 04 '12 19:01 joemccann

Joe, I've worked on the Gist API for dabblet, so its code or UX patterns might help: https://github.com/LeaVerou/dabblet

LeaVerou avatar Jan 04 '12 20:01 LeaVerou

@LeaVerou thanks, will have a look. @github's API is a thing of beauty so it should be straightforward.

joemccann avatar Jan 05 '12 15:01 joemccann

+1

Not a js expert, but will give this a go when the weather becomes a little worse.

tasuki avatar Jun 04 '13 05:06 tasuki

@tasuk that'd be great. thanks!

joemccann avatar Jun 04 '13 10:06 joemccann

What blocked this? Anything in particular or did it just never end up happening?

bigeasy avatar Jan 17 '14 21:01 bigeasy

No one implemented it.

joemccann avatar Jan 18 '14 17:01 joemccann

I would like to, I have some experience with javascript. jquery. perhaps we could start off with a simple task?

ghost avatar Sep 24 '14 18:09 ghost

Hey @joemccann, I'd like to take a look at this. I think it'll be easier if gists were separate from repositories meaning you'll have a "save to github" as well as a "save to gist" option in the menu. Authentication can be different as well as gists are a separate scope, or we can authenticate both together.

What do you think?

odedw avatar Nov 01 '15 07:11 odedw

Totally open to adding gist support but it needs to be another plugin, meaning, app code, UI code, interaction design, etc. all needs to be hashed out. I'm all for adding it if it adheres to current Dillinger approach

On Sun, Nov 1, 2015 at 12:10 AM, Oded Welgreen [email protected] wrote:

Hey @joemccann https://github.com/joemccann, I'd like to take a look at this. I think it'll be easier if gists were separate from repositories meaning you'll have a "save to github" as well as a "save to gist" option in the menu. Authentication can be different as well as gists are a separate scope, or we can authenticate both togetheer.

What do you think?

— Reply to this email directly or view it on GitHub https://github.com/joemccann/dillinger/issues/8#issuecomment-152801920.

joemccann avatar Nov 02 '15 16:11 joemccann

I agree that the UI code should be separate, but why should it be a separate plugin? don't you think it'll be easier to add functionality to the existing GitHub plugin? there's probably a lot of code there that we can reuse no?

odedw avatar Nov 02 '15 20:11 odedw

I suppose we could extend the github plugin code but it may make sense to unbundle the github plugin itself to have GH-repos an GH-gists or something along those lines. Make sense? Gists and repos APIs have their own version on GH so bundling them under one repo concerns me

On Mon, Nov 2, 2015 at 12:21 PM, Oded Welgreen [email protected] wrote:

I agree that the UI code should be separate, but why should it be a separate plugin? don't you think it'll be easier to add functionality to the existing GitHub plugin? there's probably a lot of code there that we can reuse no?

— Reply to this email directly or view it on GitHub https://github.com/joemccann/dillinger/issues/8#issuecomment-153145680.

joemccann avatar Nov 02 '15 20:11 joemccann

Makes sense. I'll try to get into it and let you know how it goes.

odedw avatar Nov 03 '15 06:11 odedw