Skip to content

Atom file specific icons for improved visual grepping

License

Notifications You must be signed in to change notification settings

philipgiuliani/file-icons

 
 

Repository files navigation

file-icons

Adds file specific icons to atom for improved visual grepping. Works with Tree View and Fuzzy Finder and Tabs.

New Settings

Screenshot

A number of icons and colours are provied by default for a range of common file types. If you have file that you would like custom icons for you can easily add this yourself.

File Icons are now specified via css(less) only.

No Colours

Colourless icons is now a setting in the atom preferences

You can now remove this from your user stylesheet

@import "packages/file-icons/features/no-colours";

Unity Theme

By default the Unity theme hides icons

Force show icons is now a setting in the atom preferences

You can now remove this from your user stylesheet

@import "packages/file-icons/features/force-show-icons";

Customisation

The following css can be added to your user stylesheet to customise files with the .rb file extension

@import "packages/file-icons/stylesheets/colors"; // to use the colours
@import "packages/file-icons/stylesheets/icons";  // to use the defined icons
@import "packages/file-icons/stylesheets/items";
@{pane-tab-selector}, .icon-file-text {
  &[data-name$=".rb"]          { .medium-red;             } // Colours icon and filename
  &[data-name$=".rb"]:before   { .ruby-icon; .medium-red; } // Colours icon only
  &[data-name$=".rb"]:before   { .ruby-icon; .medium-red; } // Colours icon only
}

Folders

@import "packages/file-icons/stylesheets/items";
@{pane-tab-selector}, .icon-file-directory {
  &[data-name=".git"]:before { .git-icon; }
}

Icons

Icons are located at ./stylesheets/icons.less. You can create a custom CSS class and express its code through content: "\fxxx";. Octicons is the default icon's class.

.ruby-icon { content: "\f047"; }

Fonts

Some custom fonts are already provided

.coffee-icon { .fa; content: "\f0f4"; }

Colours

Colours are from the Base16 colour palette. CSS classes used to apply color follow its primary 8 (eight) colours and 3 (three) variants:

  • Red, Green, Yellow, Blue, Maroon, Purple, Orange, Cyan
  • Light, Medium, Dark.

Medium is colour provided by Base16. Light is medium lightened 15%. Dark is medium darkened 15%. In order to "construct" a CSS class color, you provide its variant followed by a dash (-).

.light-red;
.medium-blue;
.dark-maroon;

Acknowledgments

Wouldn't have even tried to make this if it weren't for sommerper/filetype-color Also thanks to all the contributors.

About

Atom file specific icons for improved visual grepping

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 93.6%
  • CoffeeScript 6.4%