webpaste.el icon indicating copy to clipboard operation
webpaste.el copied to clipboard

Allow to set expiration time

Open tastytea opened this issue 4 years ago • 2 comments

It would be great if I could set an expiration time. Since different services allow for different time frames and some store forever, maybe a minimum expiration time in seconds?

tastytea avatar Dec 13 '19 22:12 tastytea

Sure would be great! :) Not sure how to do that in a harmonized way since not all providers have expiry time though. Maybe exclude the ones who doesn't or something?

etu avatar Dec 14 '19 06:12 etu

I was thinking of a minimum expiry time, and then rounding it up to the closest candidate. If it is set to 2 days and the provider only supports 1 day or 1 week, it would get rounded up to 1 week. The user can take care of excluding unsuitable providers in webpaste-provider-priority.

tastytea avatar Dec 14 '19 10:12 tastytea