Am 10.08.25 um 17:48 schrieb Hans Hagen:
(i played a bit with the dirtree module and can have these symbols but
you don't use that one so i leave it at that)
I looked into your dirtree module. The MP font approach is interesting,
I could probably add my own style with icons. Using glob avoids the
recursion that I did myself. Colors for different file types are nice; I
would color just the icons, could adapt \dirtreeentry accordingly.
What I don’t see yet:
* a color for folders (I’d like to distinguish empty folders and files)
* saving a tree (by recycling paper, haha; caching; I’d save a
structure, maybe edit it, and use it in a document without the need
to keep it)
Both should be quite easy to do. (I don’t mean you should do it but I
should try.)
In my version, I was using lfs.attributes not only to check file vs.
folder but also size, change date etc. I don’t need these ATM, but it
would have been a nice option to display nested "dir"/"ls".
Would some tagging of the structure make sense?
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________