Coming soon ...
This package adds file specific icons to Sublime Text for improved visual grepping. It's heavily inspired by Atom File Icons.
Its aims are:
- be a
tmPreferences
storage for UI themes those support file icons, - provide file type icons for themes those don't (fully) support file icons.
If you have some problems, first search for a similar issue, and then report with new one. Please read the known issues before reporting a new one.
Package Control (coming soon)
The easiest way to install is using Package Control, where it's listed as zz File Icons
.
- Open
Command Palette
using menu itemTools → Command Palette...
- Choose
Package Control: Install Package
- Find
zz File Icons
and hitEnter
- Download the .zip
- Unzip and rename the folder to
zz File Icons
- Copy the folder into
Packages
directory, which you can find using the menu itemPreferences → Browse Packages...
Note: Don't forget to restart Sublime Text after installing this package.
You can change the color, opacity level and size of the icons by modifying your user preferences file, which you can find using:
- menu item
Preferences → Package Settings → File Icons → Settings
, - choose
File Icons: Settings
inCommand Palette
.
I'm happy to announce that Boxy Theme and Material Theme bring the support of this package in the next releases. So you'll be able to choose what icons you want to use – provided by the theme or provided by the package.
If something going wrong try to:
- Open
Command Palette
using menu itemTools → Command Palette...
- Choose
File Icons: Clean Up
- Restart Sublime Text
Sublime Text file type icons use syntax scopes. That's why the icons for packages provided by the community require them to be installed.
See the list of custom packages those you may need to install to see the right icon.
In some cases you can see that some icons from your current theme are missing. You can:
- Request support of this package from the theme's developer
- Submit a request to add missing icons if the theme already supports it
This package adds some syntax aliases which Sublime Linter doesn't recognize. Just update your Sublime Linter settings, e.g.:
"syntax_map": {
"html (django)": "html",
"html (rails)": "html",
"html 5": "html",
"javascript (babel)": "javascript",
"javascript (gruntfile)": "javascript",
"javascript (gulpfile)": "javascript",
"json (bower)": "json",
"json (npm)": "json",
"json (settings)": "json",
"magicpython": "python",
"php": "html",
"python django": "python",
"pythonimproved": "python"
},
Full list of the syntax aliases can be found here.
If you are a theme developer and you want to have support of zz File Icons
, you should:
- Remove all stuff related to the icon setup:
.tmPreferences
,.sublime-settings
and.tmLanguage
files - Rename all your icons to match these ones
- Add
.zz-file-icons
file to the root of your theme (this is how we check if the theme is supported)
Also see MIGRATION.md. It contains a list of tasks those you have to do to support the next version of the zz File Icons
.
In simple terms, zz File Icons
does next steps:
- Searches all installed and supported themes
- Checks if themes those don't support it are already patched, if not
- Patches them
- Generates
<theme-name>.sublime-theme
files from template - Puts them into
dist/zpatches/
directory
- Generates
- For the themes those have support of it, it just provides
.tmPreferences
files by default (user can override icons provided by the theme via"force_override": true
) - After restarting Sublime Text, the patched themes will be enhanced to use the icons provided by
zz File Icons
It does these steps when:
- you've installed it,
- plugins loaded,
- you've changed its preferences.
The real process is just a little bit more complex to minimize hard drive I/O.
Want to contribute some code? Excellent! Read up on our guidelines.
Together we will make Sublime File Icons even better than it is today!
Colors are from the Boxy Theme icon color palette. They are bright because they should look good with the most themes. However you can change the color and the opacity level of all icons, see customization.
This package contains icons provided by:
Source icons provided in SVG format (currently Sublime Text doesn't support it). We convert them to @1x, @2x and @3x PNG assets before each release via gulp
task.
Rasterized icons can be found in dist/zpatches
folder.
See CHANGELOG.md.
- This package requires you to restart Sublime Text for the applied icons to take effect when:
- you've installed it,
- you've changed its preferences,
- you've installed a new theme that should be patched.
- The icons for custom packages require them to be installed. E.g. if you want to see
SCSS
icon you should install one of theSCSS
syntax packages.
I've put a lot of time and effort into making Sublime File Icons awesome. If you love it, you can buy me a coffee. I promise it will be a good investment 😉
Donate with: Patreon.