This package adds file-specific icons to Sublime Text for improved visual grepping. It's heavily inspired by Atom File Icons.
Its aims are:
- To be a
tmPreferences
storage for UI themes those support file-specific icons. - To provide icons for themes those don't (fully) support file-specific icons.
If you have any problems, please search for a similar issue first, before creating a new one.
Also, check the list of known issues before doing so.
- Download & Install
Sublime Text 3
(https://www.sublimetext.com/3) - Go to the menu
Tools -> Install Package Control
, then, wait few seconds until the installation finishes up - Now,
Go to the menu
Preferences -> Package Control
- Type
Add Channel
on the opened quick panel and press Enter - Then,
input the following address and press Enter
https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json
- Go to the menu
Tools -> Command Palette... (Ctrl+Shift+P)
- Type
Preferences: Package Control Settings – User
on the opened quick panel and press Enter - Then,
find the following setting on your
Package Control.sublime-settings
file:"channels": [ "https://packagecontrol.io/channel_v3.json", "https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json", ],
- And,
change it to the following, i.e.,
put the
https://raw.githubusercontent...
line as first:"channels": [ "https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json", "https://packagecontrol.io/channel_v3.json", ],
- The
https://raw.githubusercontent...
line must to be added before thehttps://packagecontrol.io...
one, otherwise, you will not install this forked version of the package, but the original available on the Package Control default channelhttps://packagecontrol.io...
- The
- Now,
go to the menu
Preferences -> Package Control
- Type
Install Package
on the opened quick panel and press Enter - Then,
search for
A File Icon
and press Enter - Note: Don't forget to restart Sublime Text after installing this package.
See also:
- ITE - Integrated Toolset Environment
- Package control docs for details.
You can change the color, opacity level and size of the icons by modifying your user preferences file, which you can find by:
Preferences → Package Settings → A File Icon → Settings
,- Choose
A File Icon: Settings
inCommand Palette
.
Sublime Text uses syntax scopes for file-specific icons. That's why icons of packages provided by the community require them to be installed.
See the list of community packages that you may need to install to see the right icon.
If your theme supports an icon customization you can choose what icons you want to use – provided by the theme (by default) or provided by the package. Otherwise this package adds its own icons only.
If something goes wrong try to:
- Open
Command Palette
using menu itemTools → Command Palette...
. - Choose
A File Icon: Revert to a Freshly Installed State
. - Restart Sublime Text.
If you are a theme developer and you want to support a file icon customization, you should:
- Remove all stuff related to the icon setup:
.tmPreferences
,.sublime-settings
,.sublime-syntax
and.tmLanguage
files. - Rename all your existing icons to match these ones.
- Add
.supports-a-file-icon-customization
file to the root of your theme (this is how we check if the theme supports customization of the file-specific icons).
In simple terms, A File Icon
does the following:
- Copies all the necessary files right after install or upgrade to
zzz A File Icon zzz
directory - Searches all installed themes
- Checks if themes are already patched, if not
- Patches them by generating
<theme-name>.sublime-theme
files from a template - For themes those support file icon customization, it provides
.tmPreferences
files and missing icons by default (user can override icons provided by the theme via"force_mode": true
).
The real process is just a little bit more complex to minimize hard drive I/O.
Colors are bright because they should look good with most themes. However you can change color and opacity level of all icons. See customization.
This package contains icons provided by:
Source icons are provided in SVG format (Sublime Text doesn't currently support it). We convert them to @1x and @2x PNG assets before each release via a custom gulp
task.
Rasterized icons can be found in icons
folder.