raycast / snippet-explorer

A tool to easily browse and import Snippets directly to Raycast.
https://ray.so/snippets
MIT License
154 stars 33 forks source link

add ISO 8601 snippets #3

Closed nagauta closed 1 year ago

nagauta commented 1 year ago

I added ISO 8601 snippets for Date & Time.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
snippet-explorer ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 25, 2023 at 3:44PM (UTC)
peduarte commented 1 year ago

Nice. Do you use these personally? If so, you happy with the keywords? Wondering if theyre too hard to type.

nagauta commented 1 year ago

Thanks. I use them personally but name this snippet "now", "now-" locally. this is public so I rename to sounds formal yeah they look too hard to type...

peduarte commented 1 year ago

haha yeah, maybe it's fine.

one last thing: can we update the text so it's contextual. Refer to other date snippets, eg: "1 Year from Today", etc.

nagauta commented 1 year ago

sure, how about Today is {date "yyyyMMdd"}. Today is {date "yyyy-MM-dd"}. or I send you a Minutes{date "yyyyMMdd"}.pdf I send you a Minutes-{date "yyyy-MM-dd"}.pdf

peduarte commented 1 year ago

@nagauta Hmm, not sure they make sense. specially because {date "yyyyMMdd"} will output 20230125 which just looks like a long number. Not sure people read dates like this. This is more useful as a kind of timestamp.

If you cant think of real life use cases for this right now, we can close the PR and re-open later, but I think we need to make sure the snippets are clear and make sense at first glance to not confuse people.

Thanks!

nagauta commented 1 year ago

You are right. let me close PR now. I use this when I write some code or SQL but I cant think of real life use cases for this right now. Thanks!