Random snippet from all tag.
drobati opened this issue ยท comments
I would love support for a single random snippet from ALL available snippets.
I also would love to implement this if the help is wanted.
I took a look last night, and I think adding an option -r n
where n can be a quantity then passing that to the printer would be a decent solution? Thoughts? I'd love to submit a PR.
@drobati Sorry for getting back at you so late. I totally forgot to put this repo on watch. Your feature request would be quite easy to implement but what is your real use-case? I do not want to bloat the API for something that is rarely used.
@sQVe I wanted to put it at the end of my .bashrc, so that every new terminal would output a snippet to digest. I looked at using jq, but jq didn't support random selection. Even then it's also limited by tags. It would be neat to do randomization on different degrees of filtering.
๐ This issue has been resolved in version 1.3.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐
@drobati This feature is now released. Use 30s random
to view a random snippet.
Nice!
Just plugged it in, works great! Thanks for supporting --layout with it too.