justinvh / gitpaste

DEPRECATED - GitPaste is a clone of GitHub's Gist.
Other
184 stars 49 forks source link

Feature request: option to automatically delete pastes #7

Closed ghost closed 12 years ago

ghost commented 12 years ago

Since this tool has features common to both gist.github.com and normal pastebins, and could potentially replace the use of both, I'd like to suggest a useful feature that quark-paste is missing, when compared to pastebin: the ability to have a paste automatically deleted after a specified period of time.

This could take the form of a group of radio buttons with common times on them (a day, a month, forever), or just a checkbox and a text input like: "[ x ] delete after [ ..... ] days"

This could help keep repositories cleaned up in a long running system, where it's commonly used to temporarily paste snippets.

justinvh commented 12 years ago

Awesome idea! It would not be hard to implement either. I'll go ahead and write something up for it soon.

garrettheel commented 12 years ago

I'm having a go at this now via a select box with "Never", "1 Hour", "1 Day" and "1 Month" being the options.

garrettheel commented 12 years ago

This has been implemented and can now be closed.

https://github.com/justinvh/quark-paste/commit/77a2da82ae007901d1e77ea54001dbe3a01d5b06