Skip to content

Commit

Permalink
Update icons (#899)
Browse files Browse the repository at this point in the history
* update icons to the one defined is vim-devicons

* Updating obsolete material design icons

Update 3.0.0 of nerd-fonts changed the codepoint of material icons.
A pull request had been made to update vim-devicons.
https://github.com/ryanoasis/vim-devicons/pull/454/files
This commit does the same update

* update test

* Add to Changelog and let Prettier run

---------

Co-authored-by: Corey Alexander <[email protected]>
  • Loading branch information
shadowwa and coreyja authored Jul 22, 2023
1 parent b72102f commit 5274826
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 34 deletions.
63 changes: 35 additions & 28 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
# Change Log

## [Unreleased] - ReleaseDate

### Icon Updates

- Icons updated to match `vim-devicons` and correct Material Designs icons
- Github PR [#899](https://github.com/coreyja/devicon-lookup/pull/899)

## [0.8.1] - 2023-02-02

### Dependencies

* Updated `regex` from `1.3.6` to `1.5.4`
- Updated `regex` from `1.3.6` to `1.5.4`

Various other dependencies of dependencies, and dev dependencies, were also updated

## [0.8.0] - 2020-04-01

### Features

* Added Ability to use a regex for finding the filename
* Github PR [#356](https://github.com/coreyja/devicon-lookup/pull/356)
* Added Ability to prefix deliminator for finding the filename
* Github PR [#356](https://github.com/coreyja/devicon-lookup/pull/356)
- Added Ability to use a regex for finding the filename
- Github PR [#356](https://github.com/coreyja/devicon-lookup/pull/356)
- Added Ability to prefix deliminator for finding the filename
- Github PR [#356](https://github.com/coreyja/devicon-lookup/pull/356)

### Dependencies

Expand All @@ -25,85 +32,85 @@ Various other dependencies of dependencies, and dev dependencies, were updated

### Dependencies

* Updated `lazy_static` from `1.3.0` to `1.4.0`
* Updated `phf` from `0.7.24` to `0.8.0`
* Updated `regex` from `1.16` to `1.3.6`
- Updated `lazy_static` from `1.3.0` to `1.4.0`
- Updated `phf` from `0.7.24` to `0.8.0`
- Updated `regex` from `1.16` to `1.3.6`

Various other dependencies of dependencies, and dev dependencies, were also updated

## [0.7.0] - 2019-06-03

### Features

* Added Icons for Elixir
* Github PR [#99](https://github.com/coreyja/devicon-lookup/pull/99) thanks [@nifox](https://github.com/nifoc)! :tada:
- Added Icons for Elixir
- Github PR [#99](https://github.com/coreyja/devicon-lookup/pull/99) thanks [@nifox](https://github.com/nifoc)! :tada:

### Dependencies

* Updated `colored` from `1.7.0` to `1.8.0`
* Updated `regex` from `1.1.5` to `1.1.6`
- Updated `colored` from `1.7.0` to `1.8.0`
- Updated `regex` from `1.1.5` to `1.1.6`

Various other dependencies of dependencies were also updated

## [0.6.1] - 2019-04-09

### Fixes

* Fixed issue that caused a panic when it encountered a broken pipe
* Fixes Github Issue #9
- Fixed issue that caused a panic when it encountered a broken pipe
- Fixes Github Issue #9

### Dependencies

* Updated `regex` from `1.1.2` to `1.1.5`
* [Dev] Updated `assert_cmd` from `0.6.0` to `0.11.1`
- Updated `regex` from `1.1.2` to `1.1.5`
- [Dev] Updated `assert_cmd` from `0.6.0` to `0.11.1`

Various other dependencies of dependencies were also updated

## [0.6.0] - 2019-03-24

### Improved

* Added option to strip ansi color codes before parsing extension
* Added help and version commands
- Added option to strip ansi color codes before parsing extension
- Added help and version commands

## [0.5.0] - 2019-03-21

### Fixed

* Went back again to `rust-phf` since that was NOT what made this slow
* Removed my debugging sleep :facepalm:
- Went back again to `rust-phf` since that was NOT what made this slow
- Removed my debugging sleep :facepalm:

## [YANKED :cry:] [0.4.0] - 2019-03-21

### Yanked

* Yanked due to having a 1.0 second delay on startup, because of accidental thread sleep
- Yanked due to having a 1.0 second delay on startup, because of accidental thread sleep

### Improved

* Reverted to `lazy-static` as after releasing I realized `0.3.0` has a noticeable startup lag
- Reverted to `lazy-static` as after releasing I realized `0.3.0` has a noticeable startup lag

### Fixed

* `vi` icon was incorrectly marked as `vim`
- `vi` icon was incorrectly marked as `vim`

## [YANKED :cry:] [0.3.0] - 2019-31-21

### Yanked

* Yanked due to having a 1.0 second delay on startup, because of accidental thread sleep
- Yanked due to having a 1.0 second delay on startup, because of accidental thread sleep

### Improved

* Using `phf` to do a compile time hash
* Added Tests
- Using `phf` to do a compile time hash
- Added Tests

## [0.2.0] - 2019-01-28

### Improved

* Use default icon for txt files
- Use default icon for txt files

## [0.1.0] - 2018-11-17

* Initial Release
- Initial Release
31 changes: 26 additions & 5 deletions src/devicon_lookup/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ static SYMBOL_MAP: phf::Map<&'static str, &'static str> = phf_map! {
"bash" => "",
"bat" => "",
"bmp" => "",
"c++" => "",
"c" => "",
"c++" => "",
"cc" => "",
"clj" => "",
"cljc" => "",
Expand All @@ -16,6 +16,7 @@ static SYMBOL_MAP: phf::Map<&'static str, &'static str> = phf_map! {
"conf" => "",
"cp" => "",
"cpp" => "",
"cs" => "󰌛",
"csh" => "",
"css" => "",
"cxx" => "",
Expand All @@ -25,21 +26,26 @@ static SYMBOL_MAP: phf::Map<&'static str, &'static str> = phf_map! {
"diff" => "",
"dump" => "",
"edn" => "",
"eex" => "",
"ejs" => "",
"elm" => "",
"erl" => "",
"ex" => "",
"eex" => "",
"exs" => "",
"f#" => "",
"fish" => "",
"fs" => "",
"fsi" => "",
"fsscript" => "",
"fsx" => "",
"gemspec" => "",
"gif" => "",
"go" => "",
"h" => "",
"haml" => "",
"hbs" => "",
"heex" => "",
"hh" => "",
"hpp" => "",
"hrl" => "",
"hs" => "",
Expand All @@ -56,14 +62,20 @@ static SYMBOL_MAP: phf::Map<&'static str, &'static str> = phf_map! {
"json" => "",
"jsx" => "",
"ksh" => "",
"leex" => "",
"less" => "",
"lhs" => "",
"lua" => "",
"markdown" => "",
"md" => "",
"mdx" => "",
"mjs" => "",
"mk" => "",
"ml" => "λ",
"mli" => "λ",
"mustache" => "",
"nix" => "",
"pem" => "󰌋",
"php" => "",
"pl" => "",
"pm" => "",
Expand All @@ -76,9 +88,12 @@ static SYMBOL_MAP: phf::Map<&'static str, &'static str> = phf_map! {
"pyc" => "",
"pyd" => "",
"pyo" => "",
"r" => "󰟔",
"rake" => "",
"rb" => "",
"rlib" => "",
"rmd" => "",
"rproj" => "󰗆",
"rs" => "",
"rss" => "",
"sass" => "",
Expand All @@ -87,16 +102,22 @@ static SYMBOL_MAP: phf::Map<&'static str, &'static str> = phf_map! {
"sh" => "",
"slim" => "",
"sln" => "",
"sol" => "󰡪",
"sql" => "",
"styl" => "",
"suo" => "",
"swift" => "",
"t" => "",
"tex" => "󰙩",
"toml" => "",
"ts" => "",
"tsx" => "",
"twig" => "",
"vi" => "",
"vim" => "",
"vue" => "﵂",
"vim" => "",
"vue" => "󰡄",
"webmanifest" => "",
"webp" => "",
"xcplayground" => "",
"xul" => "",
"yaml" => "",
"yml" => "",
Expand Down
2 changes: 1 addition & 1 deletion tests/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ mod integration {
cmd
.pipe_stdin("tests/fixtures/all-types.txt").unwrap()
.assert()
.stdout(" example.ai\n example.awk\n example.bash\n example.bat\n example.bmp\n example.c++\n example.c\n example.cc\n example.clj\n example.cljc\n example.cljs\n example.coffee\n example.conf\n example.cp\n example.cpp\n example.csh\n example.css\n example.cxx\n example.d\n example.dart\n example.db\n example.diff\n example.dump\n example.edn\n example.ejs\n example.erl\n example.ex\n example.eex\n example.exs\n example.f#\n example.fish\n example.fs\n example.fsi\n example.fsscript\n example.fsx\n example.gif\n example.go\n example.h\n example.hbs\n example.hpp\n example.hrl\n example.hs\n example.htm\n example.html\n example.hxx\n example.ico\n example.ini\n example.java\n example.jl\n example.jpeg\n example.jpg\n example.js\n example.json\n example.jsx\n example.ksh\n example.less\n example.lhs\n example.lua\n example.markdown\n example.md\nλ example.ml\nλ example.mli\n example.mustache\n example.php\n example.pl\n example.pm\n example.png\n example.pp\n example.ps1\n example.psb\n example.psd\n example.py\n example.pyc\n example.pyd\n example.pyo\n example.rb\n example.rlib\n example.rmd\n example.rs\n example.rss\n example.sass\n example.scala\n example.scss\n example.sh\n example.slim\n example.sln\n example.sql\n example.styl\n example.suo\n example.t\n example.ts\n example.tsx\n example.twig\n example.vi\n example.vim\n﵂ example.vue\n example.xul\n example.yaml\n example.yml\n example.zsh\n");
.stdout(" example.ai\n example.awk\n example.bash\n example.bat\n example.bmp\n example.c++\n example.c\n example.cc\n example.clj\n example.cljc\n example.cljs\n example.coffee\n example.conf\n example.cp\n example.cpp\n󰌛 example.cs\n example.csh\n example.css\n example.cxx\n example.d\n example.dart\n example.db\n example.diff\n example.dump\n example.edn\n example.ejs\n example.elm\n example.erl\n example.ex\n example.eex\n example.exs\n example.f#\n example.fish\n example.fs\n example.fsi\n example.fsscript\n example.fsx\n example.gemspec\n example.gif\n example.go\n example.h\n example.haml\n example.hbs\n example.heex\n example.hh\n example.hpp\n example.hrl\n example.hs\n example.htm\n example.html\n example.hxx\n example.ico\n example.ini\n example.java\n example.jl\n example.jpeg\n example.jpg\n example.js\n example.json\n example.jsx\n example.ksh\n example.leex\n example.less\n example.lhs\n example.lua\n example.markdown\n example.md\n example.mdx\n example.mjs\n example.mk\nλ example.ml\nλ example.mli\n example.mustache\n example.nix\n󰌋 example.pem\n example.php\n example.pl\n example.pm\n example.png\n example.pp\n example.ps1\n example.psb\n example.psd\n example.py\n example.pyc\n example.pyd\n example.pyo\n󰟔 example.r\n example.rake\n example.rb\n example.rlib\n example.rmd\n󰗆 example.rproj\n example.rs\n example.rss\n example.sass\n example.scala\n example.scss\n example.sh\n example.slim\n example.sln\n󰡪 example.sol\n example.sql\n example.styl\n example.suo\n example.swift\n example.t\n󰙩 example.tex\n example.toml\n example.ts\n example.tsx\n example.twig\n example.vi\n example.vim\n󰡄 example.vue\n example.webmanifest\n example.webp\n example.xcplayground\n example.xul\n example.yaml\n example.yml\n example.zsh\n");
}
}
22 changes: 22 additions & 0 deletions tests/fixtures/all-types.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ example.coffee
example.conf
example.cp
example.cpp
example.cs
example.csh
example.css
example.cxx
Expand All @@ -23,6 +24,7 @@ example.diff
example.dump
example.edn
example.ejs
example.elm
example.erl
example.ex
example.eex
Expand All @@ -33,10 +35,14 @@ example.fs
example.fsi
example.fsscript
example.fsx
example.gemspec
example.gif
example.go
example.h
example.haml
example.hbs
example.heex
example.hh
example.hpp
example.hrl
example.hs
Expand All @@ -53,14 +59,20 @@ example.js
example.json
example.jsx
example.ksh
example.leex
example.less
example.lhs
example.lua
example.markdown
example.md
example.mdx
example.mjs
example.mk
example.ml
example.mli
example.mustache
example.nix
example.pem
example.php
example.pl
example.pm
Expand All @@ -73,9 +85,12 @@ example.py
example.pyc
example.pyd
example.pyo
example.r
example.rake
example.rb
example.rlib
example.rmd
example.rproj
example.rs
example.rss
example.sass
Expand All @@ -84,16 +99,23 @@ example.scss
example.sh
example.slim
example.sln
example.sol
example.sql
example.styl
example.suo
example.swift
example.t
example.tex
example.toml
example.ts
example.tsx
example.twig
example.vi
example.vim
example.vue
example.webmanifest
example.webp
example.xcplayground
example.xul
example.yaml
example.yml
Expand Down

0 comments on commit 5274826

Please sign in to comment.