Skip to content

Commit

Permalink
Release v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Alhadis authored Dec 29, 2016
1 parent 3980776 commit cb71ea6
Show file tree
Hide file tree
Showing 781 changed files with 16,674 additions and 3,443 deletions.
8 changes: 5 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ root = true
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
indent_style = tab
indent_size = 4

[config.cson]
trim_trailing_whitespace = true
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/lib/icons/.icondb.js linguist-vendored
/preview.png export-ignore
/test/ export-ignore
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.DS_Store
npm-debug.log
node_modules
14 changes: 10 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ Change Log
All notable changes to the project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

[Unreleased]
---------------------

[2.0.0] - 2016-12-29
--------------------
### Added
- **Support:** Vash templates (`.vash`), XHTML (`.xhtml`), CSS and Javascript source maps (`.css.map`, `.js.map`)
- **New features:** Hashbang detection, modeline recognition, and much more.
[Please consult the release notes for full details](https://github.com/DanBrooker/file-icons/releases/tag/v2.0.0).
- **New icons:** ArtText (`.artx` folders), Electron, FFmpeg, GN (`.gn`, `.gni`), ICU, libuv, Ninja (`.ninja`), Nodemon (`nodemon.json`, `.nodemonignore`), Rascal (`.rsc`), V8
- **Support:** HTML (`.vash`, `.xhtml`), Source maps (`.css.map`, `.js.map`)


[1.7.25] - 2016-11-13
---------------------
Expand Down Expand Up @@ -914,7 +919,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
Initial release.


[Unpublished]: https://github.com/DanBrooker/file-icons/compare/v1.7.25...HEAD
[Unpublished]: https://github.com/DanBrooker/file-icons/compare/v2.0.0...HEAD
[2.0.0]: https://github.com/DanBrooker/file-icons/releases/tag/v2.0.0
[1.7.25]: https://github.com/DanBrooker/file-icons/releases/tag/v1.7.25
[1.7.24]: https://github.com/DanBrooker/file-icons/releases/tag/v1.7.24
[1.7.23]: https://github.com/DanBrooker/file-icons/releases/tag/v1.7.23
Expand Down
34 changes: 30 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
Adding support for a new filetype
=================================

Refer to [`config.cson`][1] for instructions on defining a new icon-to-filetype mapping.

Before editing the config, make sure you've installed the devDependencies:

apm install file-icons

You're also encouraged to run package specs, particularly if you've changed existing icons.

**NOTE:**
Changes to the config require a compilation step. The package does this automatically,
but the results won't be visible until the window's been reloaded. Remember to include
both [`config.cson`][1] and [`lib/icons/.icondb.js`][2] in your pull request.

If the latter isn't being updated, please [file an issue][3].



Adding new icons to the package
===============================

The package's icon-font is now handled in its [own repository](https://github.com/Alhadis/FileIcons). Consult its [readme](https://github.com/Alhadis/FileIcons#adding-new-icons) for instructions on adding new icons.
The package's icon-font is handled in its [own repository][4].
Consult its [readme][5] for instructions on adding new icons.


Updating the changelog
======================

You're encouraged to include your contributions in the project's [change log](CHANGELOG.md).
You're encouraged to include your contributions in the project's [change-log][6].
Add a line that briefly summarises your additions (preferably 80 characters or less).
Preserve the existing format so readers can grep what they're looking for when scanning the file:

Expand All @@ -25,5 +46,10 @@ Preserve the existing format so readers can grep what they're looking for when s
</dd>
</dl>

Before publishing a release, remember to replace `[Unreleased]` with the name of the version you're cutting.
Make sure to specify a new comparison link at the bottom of the changelog.

[1]: config.cson
[2]: lib/icons/.icondb.js
[3]: https://github.com/DanBrooker/file-icons/issues/new
[4]: https://github.com/Alhadis/FileIcons
[5]: https://github.com/Alhadis/FileIcons#adding-new-icons
[6]: CHANGELOG.md
213 changes: 145 additions & 68 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,96 +1,173 @@
# If you've just updated and your icons are all messed up, please restart Atom before filing an issue.
File Icons
==========
File-specific icons in Atom for improved visual grepping.

Some of the underlying icon fonts have updated and rearranged their icons, a restart will fix this.
<img alt="Icon previews" src="./preview.png" width="850" />

## Installing
#### On the command line:
```ssh
apm install file-icons
```
#### On Atom:
Go to `Preferences > Install`, search for `file-icons` and install it.
Supports the following packages:

# file-icons
* [`tree-view`](https://atom.io/packages/tree-view)
* [`tabs`](https://atom.io/packages/tabs)
* [`fuzzy-finder`](https://atom.io/packages/fuzzy-finder)
* [`find-and-replace`](https://atom.io/packages/find-and-replace)
* [`archive-view`](https://atom.io/packages/archive-view)

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

![Screenshot](https://raw.githubusercontent.com/DanBrooker/file-icons/master/preview.png)
Installation
------------
Open **Settings****Install** and search for `file-icons`.

A number of icons and colours are provided 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.
Alternatively, install through command-line:

Icons are now specified via CSS (Less) only.
apm install file-icons

## No Colours

Disable colours in the settings.
Customisation
-------------
Everything is handled using CSS classes. Use your [stylesheet][1] to change or tweak icons.

## Unity Theme
Consult the package stylesheets to see what classes are used:

By default the Unity theme hides icons, you can force to show the icons in the settings
* **Icons:** [`styles/icons.less`](./styles/icons.less)
* **Colours:** [`styles/colours.less`](./styles/colours.less)
* **Fonts:** [`styles/fonts.less`](./styles/fonts.less)

# Customisation
The following CSS can be added to your user stylesheet to customise files with the `.rb` file extension:

```less
@import "packages/file-icons/styles/colors"; // to use the colours
@import "packages/file-icons/styles/icons"; // to use the defined icons
```
#### Icon reference
* [**File-Icons**](https://github.com/Alhadis/FileIcons/blob/master/charmap.md)
* [**FontAwesome**](http://fontawesome.io/cheatsheet/)
* [**Mfizz**](https://github.com/Alhadis/MFixx/blob/master/charmap.md)
* [**Devicons**](https://github.com/Alhadis/DevOpicons/blob/master/charmap.md)

```less
@import "packages/file-icons/styles/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
}
```

Folders
```less
@import "packages/file-icons/styles/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.
#### Examples

* **Resize an icon:**
~~~less
.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:**
~~~css
.dark-orange { color: #6a1e05; }
.medium-orange { color: #b8743d; }
.light-orange { color: #cf9b67; }
~~~


* **Bring back PHP's blue-shield icon:**
~~~css
.php-icon:before{
font-family: MFizz;
content: "\f147";
}
~~~


* **Assign icons by file extension:**
~~~css
.icon[data-name$=".js"]:before{
font-family: Devicons;
content: "\E64E";
}
~~~


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

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

## Fonts
Some custom fonts are already provided
* [FontAwesome](http://fortawesome.github.io/Font-Awesome/)(`.fa`)
* [FontMfizz](http://fizzed.com/oss/font-mfizz)(`.mf`)
* [Icomoon](https://icomoon.io/)(`.iconmoon`)
* [Devicons](http://vorillaz.github.io/devicons/)(`.devicons`)

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

**A file's icon has stopped updating:**
It's probably a caching issue. Do the following:

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


**The tree-view's files are borked and [look like this][6].**
If you haven't restarted Atom since upgrading to [File-Icons v2][v2.0], 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:

~~~diff
-@import "packages/file-icons/styles/icons";
-@import "packages/file-icons/styles/items";
-@{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]`:

~~~diff
-@pane-tab-selector,
-@pane-tab-temp-selector,
-@pane-tab-override {
+.tab > .icon {
&[data-path$=".to.file"] {

}
}
~~~

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

Colours are from the [Base16](https://github.com/chriskempson/base16) colour palette. CSS classes used to apply color follow its primary 8 (eight) colours and 3 (three) variants:
~~~diff
-.file-icons-force-show-icons,
-.file-icons-tab-pane-icon,
-.file-icons-on-changes
~~~

* 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 (-).
**It's something else.**
Please [file an issue][7]. Include screenshots if necessary.

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

# Changelog
See [CHANGELOG.md](CHANGELOG.md).

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

# Acknowledgments

Wouldn't have even tried to make this if it weren't for [sommerper/filetype-color](https://github.com/sommerper/filetype-color)
Also thanks to all the [contributors](https://github.com/DanBrooker/file-icons/graphs/contributors).
[Referenced links]: ____________________________________________________
[1]: http://flight-manual.atom.io/using-atom/sections/basic-customization/#style-tweaks
[4]: https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors
[5]: https://github.com/Alhadis/DevOpicons/blob/master/charmap.md#JavaScript
[6]: https://cloud.githubusercontent.com/assets/714197/21516010/4b79a8a8-cd39-11e6-8394-1e3ab778af92.png
[7]: https://github.com/DanBrooker/file-icons/issues/new
[8]: https://github.com/sommerper/filetype-color
[9]: https://github.com/DanBrooker/file-icons/graphs/contributors
[v2.0]: https://github.com/DanBrooker/file-icons/releases/tag/v2.0.0
Loading

0 comments on commit cb71ea6

Please sign in to comment.