Skip to content

Commit

Permalink
Add support for more Node, Python and Ruby files (#357)
Browse files Browse the repository at this point in the history
* Adjust size/alignment of the Python icon

* Add in quite a few icon listings for Node, Python and Ruby files

* Change `.node-version` to use the NodeJS icon
  • Loading branch information
jamieconnolly authored and Alhadis committed May 9, 2016
1 parent 837ba36 commit 9380223
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
[Unpublished]
-------------
### Added
- **Support:** Embedded Crystal (`.coffee.ecr`, `.htm.ecr`, `.html.ecr`, `.js.ecr`), Embedded Ruby (`.htm.erb`), SQLite (`.sqlite`, `.sqlite3`, `.db`, `.db3`), ZSH (`zlogin`, `zlogout`, `zprofile`, `zshenv`, `zshrc`)
- **Support:** Embedded Crystal (`.coffee.ecr`, `.htm.ecr`, `.html.ecr`, `.js.ecr`), Embedded Ruby (`.htm.erb`), NodeJS (`.node-version`), NPM (`npmrc`), Python (`pypirc`, `.pypirc`, `pythonrc`, `.pythonrc`, `.python-venv`), Ruby (`gemrc`, `pryrc`, `rspec`), SQLite (`.sqlite`, `.sqlite3`, `.db`, `.db3`), ZSH (`zlogin`, `zlogout`, `zprofile`, `zshenv`, `zshrc`)

### Changed
- Alignment tweaked for PDF icon
- Size/alignment tweaked for PDF and Python icons
- Python icon used for `.python-version` files

### Fixed
- PDF files now respect value of user's "Coloured" setting
Expand Down
14 changes: 10 additions & 4 deletions styles/file-icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,6 @@
&[data-name$=".yardopts"]:before { .gear-icon; .medium-red; }
&[data-name$=".codoopts"]:before { .gear-icon; .medium-maroon; }
&[data-name=".pairs"]:before { .gear-icon; .dark-green; }
&[data-name=".python-version"]:before { .gear-icon; .dark-blue; }
&[data-name$=".ctags"]:before { .gear-icon; .dark-purple; }

// Generic format: Audio
Expand Down Expand Up @@ -1163,12 +1162,15 @@
// Nmap (Lua)
&[data-name$=".nse"]:before { .nmap-icon; .dark-blue; }

// NodeJS
&[data-name=".node-version"]:before { .node-icon; .medium-green; }

// Nodemon
&[data-name="nodemon.json"]:before,
&[data-name=".nodemonignore"]:before { .gear-icon; .medium-green; }

// NPM (Node.js)
&[data-name=".npmrc"]:before { .npm-icon; .medium-red; }
&[data-name="npmrc"]:before, &[data-name=".npmrc"]:before,
&[data-name=".npmignore"]:before { .npm-icon; .medium-red; }
&[data-name="npm-debug.log"]:before { .npm-icon; .medium-red; }
&[data-name="package.json"]:before { .npm-icon; .medium-red; }
Expand Down Expand Up @@ -1384,6 +1386,9 @@
&[data-name$=".purs"]:before { .purescript-icon; .dark-purple; }

// Python
&[data-name="pypirc"]:before, &[data-name=".pypirc"]:before,
&[data-name="pythonrc"]:before, &[data-name=".pythonrc"]:before,
&[data-name=".python-venv"]:before, &[data-name=".python-version"]:before,
&[data-name$=".py"]:before { .python-icon; .dark-blue; }
&[data-name$=".bzl"]:before { .python-icon; .dark-blue; }
&[data-name$=".ipy"]:before { .python-icon; .medium-blue; }
Expand Down Expand Up @@ -1482,8 +1487,9 @@
&[data-name$=".rss"]:before { .rss-icon; .medium-orange; }

// Ruby
&[data-name=".gemrc"]:before,
&[data-name=".pryrc"]:before, &[data-name=".rspec"]:before,
&[data-name="gemrc"]:before, &[data-name=".gemrc"]:before,
&[data-name="pryrc"]:before, &[data-name=".pryrc"]:before,
&[data-name="rspec"]:before, &[data-name=".rspec"]:before,
&[data-name=".ruby-gemset"]:before, &[data-name=".ruby-version"]:before,
&[data-name="Appraisals"]:before, &[data-name="Berksfile"]:before,
&[data-name="buildfile"]:before, &[data-name="Buildfile"]:before,
Expand Down
2 changes: 1 addition & 1 deletion styles/icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
.objc-icon { .mf; content: "\f13e"; font-size: medium; }
.osx-icon { .mf; content: "\f141"; left: 2px; }
.perl-icon { .mf; content: "\f142"; }
.python-icon { .mf; content: "\f14c"; }
.python-icon { .mf; content: "\f14c"; font-size: medium; left: 1px; }
.red-hat-icon { .mf; content: "\f14e"; }
.scala-icon { .mf; content: "\f154"; left: 3px; top: 2px; font-size: medium; }
.sql-icon { .mf; content: "\f10e"; left: 3px; }
Expand Down

0 comments on commit 9380223

Please sign in to comment.