All Projects → file-icons → Atom

file-icons / Atom

Licence: mit
Atom file-specific icons for improved visual grepping.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Atom

perfect-ubuntu
js dev setup, just for fun
Stars: ✭ 14 (-98.72%)
Mutual labels:  atom, icons
atom-perl6-editor-tools
A collection of useful Perl 6 editor tools
Stars: ✭ 19 (-98.26%)
Mutual labels:  atom, icons
A File Icon Idea
Atom File Icons plugin for IntelliJ IDEA products
Stars: ✭ 90 (-91.77%)
Mutual labels:  atom, icons
Ltfinderbuttons
My Finder buttons collection for macOS.
Stars: ✭ 269 (-75.39%)
Mutual labels:  atom, icons
Eva Icons
A pack of more than 480 beautifully crafted Open Source icons. SVG, Sketch, Web Font and Animations support.
Stars: ✭ 8,114 (+642.36%)
Mutual labels:  icons
Android Dev
⚡️ Curated list of resources for Android app development. Prepare for battle!
Stars: ✭ 44 (-95.97%)
Mutual labels:  icons
Go Signature Statusbar
Display the signature of the current Go function under the cursor in the status bar of Atom
Stars: ✭ 44 (-95.97%)
Mutual labels:  atom
React Native Alternate Icons
React Native Alternate Icons for iOS 10.3+
Stars: ✭ 42 (-96.16%)
Mutual labels:  icons
Iconology
I got tired of manually exporting every icon size (for Xcode and more), so I made an app to do it.
Stars: ✭ 56 (-94.88%)
Mutual labels:  icons
Mdi Vue
Material design icons for vue.js
Stars: ✭ 53 (-95.15%)
Mutual labels:  icons
Org Link Beautify
Beautify org links with colors and icons.
Stars: ✭ 50 (-95.43%)
Mutual labels:  icons
Gbz overlay
Gameboy Zero status icon overlay display
Stars: ✭ 46 (-95.79%)
Mutual labels:  icons
Autocomplete Ruby
Provides intelligent code completion for Ruby in the Atom editor. Requires RSense.
Stars: ✭ 50 (-95.43%)
Mutual labels:  atom
Vscode Icons
Custom Visual Studio Code Icons
Stars: ✭ 1,021 (-6.59%)
Mutual labels:  icons
Atom File Types
Specify additional file types for languages.
Stars: ✭ 54 (-95.06%)
Mutual labels:  atom
Atom Flutter
An Atom plugin for Flutter developers
Stars: ✭ 42 (-96.16%)
Mutual labels:  atom
Terminus
Terminus, a terminal for Atom! - Looking for collaborators hop in, at your next bus stop :-)
Stars: ✭ 49 (-95.52%)
Mutual labels:  atom
Antu Icons
A smooth theme designed for Plasma Desktop
Stars: ✭ 53 (-95.15%)
Mutual labels:  icons
React Icomoon
It allows you to simply view the icons in the selection.json file provided by Icomoon.
Stars: ✭ 48 (-95.61%)
Mutual labels:  icons
Font Awesome Php
A PHP library for Font Awesome 4.7.
Stars: ✭ 47 (-95.7%)
Mutual labels:  icons

File Icons

Build status: TravisCI Latest package version

File-specific icons in Atom for improved visual grepping.

Icon previews

Supports the following core packages:

An API is offered for packages not listed above. See the integration steps for more info.

Installation

Open SettingsInstall and search for file-icons.

Alternatively, install through command-line:

apm install --production file-icons

Customisation

Everything is handled using CSS classes. Use your stylesheet to change or tweak icons.

Consult the package stylesheets to see what classes are used:

Icon reference

Examples

Resize an icon

.html5-icon:before{
	font-size: 18px;
}

// Resize in tab-pane only:
.tab > .html5-icon:before{
	font-size: 18px;
	top: 3px;
}

Choose your own shades of orange

.dark-orange   { color: #6a1e05; }
.medium-orange { color: #b8743d; }
.light-orange  { color: #cf9b67; }

Bring back PHP's blue-shield icon

.php-icon:before{
	font-family: MFizz;
	content: "\f147";
}

Assign icons by file extension

The following examples use attribute selectors to target specific pathnames:

.icon[data-name$=".js"]:before{
	font-family: Devicons;
	content: "\E64E";
}

Assign icons to directories

.directory > .header > .icon{
	&[data-path$=".atom/packages"]:before{
		font-family: "Octicons Regular";
		content: "\f0c4";
	}
}

Troubleshooting

I see this error after installing:

"Cannot read property 'onDidChangeIcon' of undefined"

A restart is needed to complete installation. Reload the window, or restart Atom.

If this doesn't help, please file an issue.

Installation halts with an npm error:

npm ERR! cb() never called!

There might be a corrupted download in your local cache. Delete ~/.atom/.apm, then try again:

rm -rf ~/.atom/.apm
apm install --production file-icons

An icon has stopped updating:

It's probably a caching issue. Do the following:

  1. Open the command palette: Cmd/Ctrl + Shift + P
  2. Run file-icons:clear-cache
  3. Reload the window, or restart Atom

Ruby files are showing the wrong font:

If language-ethereum is installed, remove it. This is a known issue with the package, which is no longer maintained. For Solidity support, use linter-solidity or language-solidity instead.

If language-ethereum isn't installed, please follow these steps and file an issue.

The tree-view's files are borked and look like this:

If you haven't restarted Atom since upgrading to File-Icons v2, do so now.

If restarting doesn't help, your stylesheet probably needs updating. See below.

My stylesheet has errors since updating:

As of v2.0, classes are used for displaying icons instead of mixins. Delete lines like these from your stylesheet:

[email protected] "packages/file-icons/styles/icons";
[email protected] "packages/file-icons/styles/items";
[email protected]{pane-tab-selector},
.icon-file-directory {
	&[data-name=".git"]:before {
-		.git-icon;
+		font-family: Devicons;
+		content: "\E602";
	}
}

Instead of @pane-tab… variables, use .tab > .icon[data-path]:

[email protected],
[email protected],
[email protected] {
+.tab > .icon {
 	&[data-path$=".to.file"] {
 		
 	}
}

These CSS classes are no longer used, so delete them:

-.file-icons-force-show-icons,
-.file-icons-tab-pane-icon,
-.file-icons-on-changes

It's something else.

Please file an issue. Include screenshots if necessary.

Integration with other packages

If you're a package author, you can integrate File-Icons using Atom's services API.

First, add this to your package.json file:

"consumedServices": {
	"file-icons.element-icons": {
		"versions": {
			"1.0.0": "consumeElementIcons"
		}
	}
}

Secondly, add a function named consumeElementIcons (or whatever you named it) to your package's main export:

let addIconToElement;
module.exports.consumeElementIcons = function(func){
	addIconToElement = func;
};

Then call the function it gets passed to display icons in the DOM:

let fileIcon = document.querySelector("li.file-entry > span.icon");
addIconToElement(fileIcon, "/path/to/file.txt");

The returned value is a Disposable which clears the icon from memory once it's no longer needed:

const disposable = addIconToElement(fileIcon, "/path/to/file.txt");
fileIcon.onDestroy(() => disposable.dispose());

NOTE: Remember to remove any default icon-classes before calling the service handler!

 let fileIcon = document.querySelector("li.file-entry > span.icon");
+fileIcon.classList.remove("icon-file-text");
 const disposable = addIconToElement(fileIcon, "/path/to/file.txt");

Backers

If you enjoy these icons, help support the project by becoming a backer. Huge thanks to our current backers for their generous support:

Justin Ireland Tipe Triplebyte TakeShape

Acknowledgements

v1 was originally based on sommerper/filetype-color. v2 was completely rewritten. Both versions owe their success to innumerable contributions from the Atom community.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].