Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 28 million developers.Sign up
Hashbang and modeline recognition
Interpreter directives and modelines are now detected inside file headers, even before they're opened:
Support for custom file-types
If your config defines custom language types, the mapped extensions will now show icons appropriate for their languages. If you work with MATLAB, for example, you might prefer
.m files use its icon instead of Objective-C's:
"*": core: customFileTypes: "source.matlab": ["m"]
- Case-insensitive matching:
.hTmLare all matched the same.
- Icons for popular frameworks/libraries:
Accurately matching filenames like
knockout-3.4.0.min.jsis infeasible in CSS. Conversely, this is trivial to achieve with regular expressions.
- Filtering of generic/junk suffixes:
Certain suffixes (e.g.,
.tmp) commonly tacked onto filenames are ignored when matching.
index.html.tmpwill show an HTML icon instead of nothing at all.
- Better fallbacks:
Having each match-rule ordered by an explicit priority enables safe guesswork to be used as a last resort. E.g.,
.dotfilesshow a gear instead of the usual blank-page icon, since they're likely to be config files.
Manually assigning a file's language will also update its icon:
Icons can also be set on a per-file basis using a
.gitattributes file. These files are checked for
linguist-language attributes, which enable authors to correct their repository's classification on GitHub:
*.h linguist-language=C++ *.t linguist-language=Terraform
More information may be gleaned from Linguist's documentation.
If nothing else matches a file, its data is checked for a recognised file signature. The package will recognise images or videos that were saved without their proper file extension:
More importantly, binary-type files are identified as such, making it somewhat easier to tell which files are safe to open:
Devicons → DevOpicons:
MFizz → MFixx:
For those wondering: Yes, I really did clean 298 icons by hand in Adobe Illustrator. I never claimed to be sane.
Note: GN and Ninja's icons were created for this package; the projects have no logos of their own.
- Source maps: