Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Enable tagging of box designs in config file #23
Comments
Thanks, this sounds quite useful. Some additional points:
The |
I agree. The whole idea stemed from the example you gave with "keyword", and I thought immediately it would help to sort better all designs. But tags is better, shorter and more to the point.
Instead, "-l" could take further the name of designs, which makes it useful for filtering out by wildcards (eg: "-l round_" would show all designs starting with "round_", to narrow out the very long output) |
By the way...
with each tag followed by the number of occurences.
would list only design containing "animals" and framed tags, but not those with a "speechbubble" tag (!) — or something along those lines. |
Thank you for sharing these good ideas. I see what you mean, and largely agree. I also like the idea of giving the number of occurrences. |
True, but this applies only the repository version. Being the license open and permissive, nothing prevents parallel distribution of of boxes, or modded config files, or even collections of single-file designs. So, "tag madness effect" might also apply in other cases:
Also, tag swtiches are not intended only for humans, but also for scipt-automation, ecc. Keep in mind that boxes, like FIGLet and cowsay, is often used in a toolchain for automated tasks like email signatures generation, random quotes, ecc. I've actually got to know about boxes from an ASCII Art website that offered good tutorials on how to setup such a toolchain for automating random signatures in emails. So, in such cases, atomic tags filtering is a blessing because it would garantee that certain contents never get through the random selection. |
Currently, tags can be added to the config file, and displayed in the design information. They are not really understood, though, so no query-by-tag or anything yet.
I've noticed in the docs tutorial that you presented the "keyword" tag—which right now might not be implemented.
In my box contribution I've used it (but in plural: "keywords"), because I think that it's going to be rather useful as soon as the designs list is going to grow: keywords might help filter between categories to display with -L switch.
I'd say that more than one keywords could be used, comma-separated. Also aliasing "-keyword" with "-keywords" and "-k" (singular, plural, shorthand) would be a good idea.
I really like boxes, it reminds me of a PhotoShop plugin I had: Alien's "Splat!Frame", which allowed to build custom frames with a very similar system of 16 regions (but in a TIFF image). Well done!