spirit
spirit copied to clipboard
feat: Collections
Is your feature request related to a problem? Please describe. An issue with several other pastebins is that you aren't able to easily group together a bunch of similar pastes. Without an easy way to provide a single URL, you end up spamming the other person with a bunch of links, without an obvious link between them all.
Describe the solution you'd like
A potential solution would be to allow a user to create a collection of pastes using a UI, which would provide a URL in a fashion similar to /col/{pastes}
. The {pastes}
could either be a URL encoded list of paste IDs, a Base64 encoded list of paste IDs, or a collection ID that would need to be stored in the DB.
Describe alternatives you've considered The only other alternative is to just send a bunch of links to another user, without any way to specifically state that these pastes are directly related.
Additional context N/A
This'll come once we complete associated uploads, but good suggestion! I'd say storing each link in the DB along a collection
table.
This'll come once we complete associated uploads, but good suggestion! I'd say storing each link in the DB along a
collection
table.
That's what I suggest as well. The structure of the database would be very simple:
Collection Identifier | Documents |
---|---|
xMeR0XMoQZA4 | [ UMhbRYQlI4NB, FaeDV6jJN9eR ] |
Stale issue message
Stale issue message
I've realized the best and simplest way to implement this is on the client by allowing multiple pastes to be viewed at once defined in a comma-deleted list in the URL.
Therefore I will be transferring this issue to the Pulsar repository.