magnus woldrich
magnus woldrich
https://github.com/trapd00r/LS_COLORS/tree/motherofgod/bin/scrape_fileinfo - auto-scrape from fileinfo.com - every file extension categorized - every file extension commented - a valid LS_COLORS file generated on STDOUT, including folding markers for vim :)
Btw. This wasn't an issue with the entries I scraped from wikipedia (only +2500), but this is over 11k entries and, welp, we run into the 120KiB limit per env...
Given that all extensions use the ecma-48 spec notation and each extension have 5 chars we could do roughly 9k (13 chars per entry). And agree, a curated list would...
I might be able to trim the list quite effectively, I happened to write a thing while playing around with this... https://github.com/trapd00r/File-Extension
On my way to Zanzibar right now but I stumbled upon this on hackernews: http://fileformats.archiveteam.org/wiki/Category:File_formats_by_extension Pretty comprehensive and with a lot of information on each type.
> `.pl` and `.PL` have different colors for mysterious reasons. I'm not a perl guy but some person in `#perl` on freenode says > > > a file called Something.PL...
> @trapd00r I vaguely remember us talking about you building some wild database for extensions, did you make any progress with htat? Well, we made this: https://github.com/trapd00r/LS_COLORS/issues/112#issuecomment-447568557 and blew up...
Interesting enough, the problem only appears if: - There's a config file, and - That config file contains a format Specifying the same format I'm using in the configuration file...
Wouldn't pygments be an alternative?
It looks like you might be on macos. Try installing the gnu coreutils: `brew install coreutils `