[quote=“Orlmente”]
If you want to add specif icons for specific filetypes you need to:
- add the respective file_type_%desired file type here%.png and file_type_%desired file type%@2x.png (for retina) it in /package/Theme - %current theme name here%/icons/ folder (if Theme - themename folder does not exist create it yourself)
- create a new “Icon (%new file type here%).tmPreference” file and put it in either /package/user/ or /package/Theme - %current theme name here%/ forlder.
- in the newly created “Icon (%new file type here%)” file insert the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>scope</key>
<string>%right scope for file type here%</string>
<key>settings</key>
<dict>
<key>icon</key>
<string>file_type_%new file type here%</string>
</dict>
</dict>
</plist>
For the scope of .erb fyles, it should be html.body.ruby, but you can find it both by:
- looking in the color scheme or language definition files to see which scopes are used for highlight
- add
{ "keys": "ctrl+alt+shift+o"], "command": "show_scope_name" }
to you user’s keybindings, create a new .erb fyle and trigger the command to display current scope in the bottom statusbar
hope it helps[/quote]
Thanks man, i added the scope too my ruby icon file string text.haml,source.rails,source.ruby,text.html.ruby
Worked like a boss!