-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Pastebin service #693
Comments
👍 for this one and I would suggest to name this feature cups,, as in cups of tea.... |
@laplix That might be a bit confusing with the Common Unix Printing Service. Also +1 as well. |
cup? cupi? Or simply Pastebin? |
Or just snippets, I know it's not a fancy name ;) |
I still (see gogs issue) think this should be an external service. We could however make it injectable into Gitea 🙂 |
Optional features: ) Comment section A lot of +1 and many separately created issue reports about this proposal show a clear picture: |
on the other hand, it should be fairly simple to implement snippets. Keep a hidden repo called |
@bkcsoft On GitHub, each snippet is a Git repo (but can contain many files). But we can make it different. I don't know if it should be part of Gitea or a separated project. If in Gitea, it would be easier to reuse code. Anyway we should keep in mind that many people (me included) dislike the GitHub UI for Gists. I think we can do it better. There should be categories or tags to organize gists. It should be easy to find and search for existing Gists. |
Containing all snippets in one repo: Pros:
Cons:
Gist UI sucks indeed... much to be improved, just feels hacked together... IMO we should contain everything regarding snippets to said repo (if a single one, otherwise I'm all down for submodules or whatever to keep track of them...), this includes categories (folders anyone? ) and tags Having that as a file in the repo makes it easy to sync that to your editor as well, and makes it fairly simple to do searches 🙂 |
@andreynering I thought about tags as well, think this a good idea. |
May be a nice candidate to fork and adjust: https://github.com/defunkt/gist |
defunkt/gist is a command line tool to speak to Gist, gmarik/Gistie is written in Ruby, both are not very relevant here 🙂 |
A pure golang library is preferred. |
You could use it with a haste server, so people don't have to think about the space. Use hastebin.com by default and send the requests from the client using javascript, so the server won't be rate-limited. But also allow users to use their own haste-server. It could be implemented using an iframe. |
I just found today an awesome tool that I want to share it with you: fssnip.net |
Some ideas about
|
Take a look at gists, there can be several files. |
@lunny In regards to 3: with gists I sometimes use multiple files so I think limiting it to one might not work for some cases. Also, perhaps instead of enforcing a file extension we could either assume text/plain, or check if the file is a binary file and then just provide a link to the raw file. Edit: ptman got to it first. |
Binary files for a pastebin service? Not a good idea. Please don't require a file extension, otherwise you won't be able to share a makefile. |
@ptman @tboerger @techknowlogick updated my comments. |
As some people didn't like how we integrated timetracking into the core, what about making pastebins an external service which integrates tightly with giteas api and uses it's repositories to store pastes? |
@kolaente so the default is disabled. But as an external service, it will need more work than as an internal since repository, issue, comment are all ready. |
Both? So Github Gists together with an own solution? |
Owner EDIT: Please keep discussions safe for work... |
I quite like the name Sips (in relation to (gi)Tea) for gists. :) Cups is good too, but brings to mind full sized repositories to me. |
I have an unfinished PR name it cups |
This comment has been minimized.
This comment has been minimized.
@Mikaela Hah! Hadn't even thought of that usage. @lunny I went looking through PRs to see if there was something I could help with or riff off of and I didn't see anything matching pastebin, bin, paste, cup, or cups? I'd be happy to help move it forward if there's already something under way. Or even if there's not, for that matter. Just don't want to duplicate effort. |
Arch is using PKGBUILDs, opposed to pkgbuild from Apple. |
Any news? |
As for the NameIf we want it to be familiar, it should be If we want it to be brandable, Gitlab uses branded termsIn the case of Gitlab, they chose "merge request" instead of "pull request", which makes sense if you consider the historical context of what a "Pull Request" was on the original Github vs the "auto-merge" functionality that it later evolved into. However, I would be surprised if they didn't also do a little Google Keyword Planner research and discover that using the term "Merge Request" gave them some sort of SEO advantage. The New User ExperienceAs I said, I personally don't see see a lot of value in giving it a branded name. As a new user, that would be the kind of thing that makes me roll my eyes and think:
Final Thoughts
If we don't use |
I agree with merge request, makes a lot more sense to me. I personally love the idea to use an own name and I honestly think, for the google index it is enough to simply word it in the documentation as so: "Cups is a solution to save notes and is similar to what GithubGist and Pastebin provides." Why branding is importantOwn names make sense since they help to indentify - thats why we all have not the same name. Companies invest around half of their income into branding, Pepsi saying "we dont need an own name, just call it Cola" is absurd. Also, let us talk about unique features. |
Just my life experience: when you're talking about GitHub, you should use PR (Pull Requests) (or Public Relations?), when you're talking about GitLab — you should use MR (Merge Requests). And if somebody doesn't familiar with GitLab, for example, it can be like: — Please, open MR. And sometimes, especially if you like one more than another, you can write a mistake like: — I've opened MR for your GitHub project. The same about snippets vs gists. You can call Gitea things as you want, but with new names you will bloat terminology. |
Why not gits? It is easy to say, it refers to gitea, but now when I writing.. suddenly... God be Damned.. I do like gitbits better.. little like tidbits. |
Personally, I don't care what you call it. I would rather see the focus on implementation first. |
Today I realized a single script shouldn't be in a repo of scripts I was going to share, but I wanted to retrieve that script in the same way I retrieve the other scripts from other machines. It would be silly to make a whole repo. That leads me to think private gists are a good way to store, retrieve, and track secrets files. I'll chime in on names while I'm here. Frankly I don't like any so far. I suggest naming the service Gistea and a snippet a Leaf. Gistea is a unique keyword while still recognizable as Gitea's gists, and leaves are a clever and appealing analogy. I especially don't like "cups". Reminds me of a certain Marge Simpson scene. "Cup... could you spell that?" |
I like that 😇 |
I would love to have something like the mockup in this comment. Whenever I'm learning something new I always feel like I don't have a good place to put informal information and notes, especially for things that don't fit into a specific project. As an actual use case, I've been working on learning Drone (CI) lately. Since it applies to any project, there's nowhere great for me to document ideas, example, reminders, tips, etc.. I don't know enough to start a documentation site for my own guidelines and, even if I did, I find that can be a distraction. I could make a project just to use the Wiki, but the Wiki requires a structure that's too formal for collecting a bunch of random thoughts and ideas. Right now I've settled on a separate project where I misuse the issue tracker for informal notes just because I can add labels to them. In general I try to evolve documentation by using |
https://github.com/fragmenta/fragmenta-cms |
https://secrethub.io/ , bit better for api keys or secrets to be distributed to boxes than gists. My.dev.box , vs hacked.box.someplace.else I totaly wana private gist my api flipping key private... OSINT INTELLIGENCE, can unmask my supposed hidden services. Ie gists .. Python OSINT tools , your license plate, your address, cellphone, carrier, etc. So filtering block strings ie passwords api keys |
One alternative written in go: https://dev.sigpipe.me/dashie/git.txt |
This comment has been minimized.
This comment has been minimized.
this could be your chance to get into the project, learn something new and develop the proposed feature. |
One simple solution to use such a feature already is to create a repository named gist and put all md files inside. |
@luwol03 I'm developing this feature here. Like wiki that is one git repo internally, Will have other repo called gist and for every new gist, will created new empty branch for this. |
was no reason to mark my comment as disruptive, I just bumped topic up and now we looking that someone writing code.
it can be one ".gists" repo per user, also this repo name must be denied to create on repo create page. original gists service on github looking like pr page with conversation, so gists repo in gitea can handle branch and pr for every committed text file. in this variation it can be easily integrated into current gitea. |
👍🏻 reaction under the first comment is enough, there is issues sorting by reactions. No need "to bump", there are 33 participants and a message like "there is no code" has about zero value. Sorry, please use appropriate tools, it's not old-school forum.
Oh, you're continuing to discuss naming instead of coding. 🙃 So sweet. Just… I don't know what to say anymore, please look at yourself and be patient, or try to make things better (like write a code). |
I'm going to lock this thread in an effort to curb more bike-shedding. Anyone who wishes to work on an implementation, please open an issue or PR describing your implementation and we can discuss it at that time. |
posibl. impl. #16670 proposal |
close this proposal since we wont have a anon pastebin in gitea - this is not it's mission ... |
[x]
):Description
I am used to Gist, the pastebin service, since it offers me the option to collect all my pasted code in one central place and that in the same interface, text editor and so on, which i use on Github, so all is very consistent.
I suggest to implement such a service for Gitea too, as Gitlab does it with their snippets.
This is something we all use, it provides users and developers the very same look and feel as in Gitea, is easy to implement (so far i as a newbie can see) and offer us a history of all the already posted code.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: