Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snippets, Gists, Etc. feature #936

Open
rjmoggach opened this issue Feb 11, 2015 · 50 comments
Open

Snippets, Gists, Etc. feature #936

rjmoggach opened this issue Feb 11, 2015 · 50 comments
Labels
🎯 feature Categorizes as related to a new feature ☁️ plugin Maybe one day, who knows

Comments

@rjmoggach
Copy link

Would be great to see a snippets feature added like github gists or gitlab snippets... It's an invaluable tool when you don't want a full blown repo.

@unknwon unknwon added the 🎯 feature Categorizes as related to a new feature label Feb 11, 2015
@unknwon
Copy link
Member

unknwon commented Feb 11, 2015

Thanks your feature request!

We want users to be able edit in the web UI, so this feature may come together/after #270

@MichielDeMey
Copy link

You could potentially integrate with GitHub's gists for this.

They don't charge you for them and allow you to create an unlimited amount.

However I can understand that not everyone wants to give their data to GitHub.

@rjmoggach
Copy link
Author

the feature request was to add a feature like github gists or gitlab snippets, not supplant it using one of those existing solutions by other providers - ie. add it as a feature to gogs - I already use gists regularly and see it as a great feature for gogs

@MichielDeMey
Copy link

I am aware of what the request was. I'm just not clear on the added benefit of adding this to Gogs versus using an existing (great) solution.

The only thing I can think of is owning your own data, which I agree can be useful in some instances.

@rjmoggach
Copy link
Author

Not sure why this isn't obvious...

-private intranet
-data ownership
-self imposed security policies
-whole stack management of IT

On Mar 19, 2015, at 3:23 AM, Michiel De Mey notifications@github.com wrote:

I am aware of what the request was. I'm just not clear on the added benefit of adding this to Gogs versus using an existing (great) solution.

The only thing I can think of is owning your own data, which I agree can be useful in some instances.


Reply to this email directly or view it on GitHub.

@StrangeWill
Copy link
Contributor

Pretty much agree with @robmoggach, if we wanted to use GitHub's Gists, we'd just use them. Gogs can end up on a system behind a firewall that can't push things to GitHub (one of the benefits of a self-hosted solution), so of course this needs to be standalone.

@rjmoggach
Copy link
Author

thanks... shouldn't really be a discussion but good to have some backup.
GitLab does it... gogs should too.

Robert Moggach
Sr. VFX Supervisor / Flame Artist
Los Angeles / New York / London / Toronto
http://moggach.com
https://www.linkedin.com/profile/view?id=1664843
Mobile (310) 773-1793

On Sun, Apr 19, 2015 at 7:51 PM, William Roush notifications@github.com
wrote:

Pretty much agree with @robmoggach https://github.com/robmoggach, if we
wanted to use GitHub's Gists, we'd just use them. Gogs can end up on a
system behind a firewall that can't push things to GitHub (one of the
benefits of a self-hosted solution), so of course this needs to be
standalone.


Reply to this email directly or view it on GitHub
#936 (comment).

@unknwon unknwon added this to the 0.7.5 milestone Sep 12, 2015
@koliyo
Copy link

koliyo commented Oct 6, 2015

This would be a really awesome feature, nice to see it in a milestone :D

@unknwon
Copy link
Member

unknwon commented Oct 6, 2015

@Kolis 😄

@unknwon unknwon modified the milestones: 0.7.5, 0.8.0 Nov 15, 2015
@unknwon unknwon modified the milestones: 0.10.0, 0.9.0 Dec 13, 2015
@mkoitka
Copy link

mkoitka commented Dec 22, 2015

We would also use this feature internally. It'd be nice if multiple "files" could be added to a snippet like Github does with its Gists. That would also be a real advantage over GitLab. IMHO they only allow adding of one file per snippet.

@joubertredrat
Copy link

👍 +1 with love

@NiklasRosenstein
Copy link

+1

@nmaas87
Copy link

nmaas87 commented Jan 23, 2016

+1 :)

@tonivj5
Copy link
Contributor

tonivj5 commented Jan 24, 2016

+1 👍

@asmartin
Copy link

asmartin commented Feb 2, 2016

+1

@unknwon unknwon removed this from the 0.10.0 milestone Feb 7, 2016
@unknwon unknwon added the ☁️ plugin Maybe one day, who knows label Feb 22, 2016
@mehrad-rafigh
Copy link

+1. I need to learn Go man :)

@ddevault
Copy link

ddevault commented Mar 3, 2016

+1

@hhenkel
Copy link

hhenkel commented Aug 18, 2016

As #270 has been implemented in december 2015 and the web editor is available since a few days, it might be good to look at this feature again?

@BryanDollery
Copy link

Any news on this? It would be very useful.

@snazzybunny
Copy link

+1

@FoRTu
Copy link

FoRTu commented May 31, 2017

+1

Any info about it?

Thank you!

@yanlinaung30
Copy link

Any update for gist?

@Fastidious
Copy link
Contributor

Everyone seems to be expecting this (it would be a very nice addition!), but no one is sending in any PR to contribute. I do not have knowledge of go, but if anyone does, let's stop with the +1, and short inquires, and just sent in your PRs.

Please, learn how to use issues on GitHub. This isn't Facebook, nor Twitter. Your +1 only comments do nothing else but to pollute the original request.

@ozwaldorf
Copy link

ozwaldorf commented Oct 14, 2017

@Fastidious agreed, although I think they are trying to bump the issue so that devs would see it. Even so it is very annoying.

I am the owner/creator of https://comp.st and https://pst.sh, an anonymous command line pastebin (which itself is written in go, see https://comp.st/SOURCE?go). I'll work on a paste section for gogs. How does github store gists? I could either store it in a fs based db lke comp.st, or I could store gists in a single git repo (which could be useful for batch downloading a user's gists)

@dbluhm
Copy link

dbluhm commented Nov 9, 2017

@The5heepDev I can't say I know how github stores gists but I personally think storing them in a single git repo would be good for exactly the reason you mentioned. Batch download as well as the potential to just clone your gists locally would be compelling features -- for me, at least.

In the end, the only difference between the gists repo and your other repos would be how it's presented.

@Fastidious
Copy link
Contributor

I could either store it in a fs based db lke comp.st, or I could store gists in a single git repo (which could be useful for batch downloading a user's gist

Storing gists in a single repository would be the way to go. How goes progress, @The5heepDev?

@ozwaldorf
Copy link

@Fastidious hey sorry I've been swamped lately. I'm setting up a testing environment right now, though!

@ozwaldorf
Copy link

ozwaldorf commented Nov 20, 2017

@Fastidious I have a (somewhat hacky) setup for pastes on my fork.
for the pastes to work you need to create a repo named 'paste', with some file inside it. It cannot be a blank repo.

https://github.com/The5heepDev/gogs/tree/develop

Here's some screenshots:
https://comp.st/static/TfkX
https://comp.st/static/5tVw
https://comp.st/static/2Ln0

@Fastidious
Copy link
Contributor

@The5heepDev it is a start!

@ozwaldorf
Copy link

ozwaldorf commented Nov 20, 2017

Most of yesterday was just getting a hang of how gogs is doing routing and figuring out the template logic

I currently am just using the repo templates with {{if not .IsPasteRepo}}{{end}} to remove some elements that don't pertain to the pastes. The next step is to move the testing scripts and stuff into it's own route pkg and dedicated templates. For now, much of it will be recycled from the existing repo template/pkg

@PascalBru
Copy link

PascalBru commented Aug 14, 2018

any progress?

@raniellyferreira
Copy link

+1

@CWempe
Copy link

CWempe commented Feb 18, 2020

Any news on this one?

@ttimasdf
Copy link

ttimasdf commented Feb 3, 2021

+1, another ping in case it get lost in 2021 😃

@apeyroux
Copy link

apeyroux commented Feb 3, 2021 via email

@niemes
Copy link

niemes commented Apr 5, 2021

+1

2 similar comments
@Michal-Szczepaniak
Copy link

+1

@r1der23
Copy link

r1der23 commented Aug 13, 2021

+1

@JamesKBowler
Copy link

putting a +1 here because I want some thumbs down. yeah baby hit me.

@Michal-Szczepaniak
Copy link

+1 letsgooo

@vncloudsco
Copy link

+1 lets gooooo

@h0m3
Copy link

h0m3 commented Jul 20, 2022

+1

@gdog2u
Copy link

gdog2u commented Aug 12, 2022

+1 As github gets worse and worse, I hope this can be added soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 feature Categorizes as related to a new feature ☁️ plugin Maybe one day, who knows
Projects
None yet
Development

No branches or pull requests