gogs icon indicating copy to clipboard operation
gogs copied to clipboard

Snippets, Gists, Etc. feature

Open rjmoggach opened this issue 11 years ago • 52 comments

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.

rjmoggach avatar Feb 11 '15 04:02 rjmoggach

Thanks your feature request!

We want users to be able edit in the web UI, so this feature may come together/after https://github.com/gogits/gogs/issues/270

unknwon avatar Feb 11 '15 05:02 unknwon

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.

MichielDeMey avatar Mar 17 '15 01:03 MichielDeMey

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

rjmoggach avatar Mar 19 '15 05:03 rjmoggach

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.

MichielDeMey avatar Mar 19 '15 10:03 MichielDeMey

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 [email protected] 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.

rjmoggach avatar Mar 19 '15 13:03 rjmoggach

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.

StrangeWill avatar Apr 20 '15 02:04 StrangeWill

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 [email protected] 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 https://github.com/gogits/gogs/issues/936#issuecomment-94344175.

rjmoggach avatar Apr 20 '15 02:04 rjmoggach

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

koliyo avatar Oct 06 '15 20:10 koliyo

@kolis :smile:

unknwon avatar Oct 06 '15 20:10 unknwon

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.

mkoitka avatar Dec 22 '15 11:12 mkoitka

:+1: +1 with love

joubertredrat avatar Jan 11 '16 19:01 joubertredrat

+1

NiklasRosenstein avatar Jan 18 '16 23:01 NiklasRosenstein

+1 :)

nmaas87 avatar Jan 23 '16 10:01 nmaas87

+1 :+1:

tonivj5 avatar Jan 24 '16 00:01 tonivj5

+1

asmartin avatar Feb 02 '16 15:02 asmartin

+1. I need to learn Go man :)

mehrad-rafigh avatar Feb 24 '16 20:02 mehrad-rafigh

+1

ddevault avatar Mar 03 '16 20:03 ddevault

+1

peponi avatar Mar 30 '16 11:03 peponi

+1

stephanfriedrich avatar Mar 30 '16 11:03 stephanfriedrich

+1

jpgreth avatar Apr 05 '16 11:04 jpgreth

+1

Jitsusama avatar May 26 '16 16:05 Jitsusama

+1

Einfach-Ich avatar Jul 10 '16 21:07 Einfach-Ich

Any news about this topic

lavvy avatar Aug 02 '16 15:08 lavvy

+1

PascalBru avatar Aug 05 '16 09:08 PascalBru

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?

hhenkel avatar Aug 18 '16 13:08 hhenkel

Any news on this? It would be very useful.

BryanDollery avatar Sep 06 '16 09:09 BryanDollery

+1

snazzybunny avatar Sep 10 '16 21:09 snazzybunny

+1

Any info about it?

Thank you!

FoRTu avatar May 31 '17 10:05 FoRTu

Any update for gist?

yanlinaung30 avatar Jun 13 '17 08:06 yanlinaung30

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.

Fastidious avatar Oct 05 '17 15:10 Fastidious