Skip to content

Commit f4f83f4

Browse files
Add some icons for files
1 parent f9540ea commit f4f83f4

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

src/output/icons.rs

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ fn icon(file: &File) -> char {
5454
"avro" => '\u{e60b}',
5555
"clj" => '\u{e768}',
5656
"coffee" => '\u{f0f4}',
57-
"conf" => '\u{e615}',
5857
"cpp" => '\u{e61d}',
5958
"hpp" => '\u{e61d}',
6059
"c" => '\u{e61e}',
@@ -66,6 +65,7 @@ fn icon(file: &File) -> char {
6665
"db" => '\u{f1c0}',
6766
"diff" => '\u{f440}',
6867
"patch" => '\u{f440}',
68+
"rtf" => '\u{f1c2}',
6969
"doc" => '\u{f1c2}',
7070
"docx" => '\u{f1c2}',
7171
"odt" => '\u{f1c2}',
@@ -78,7 +78,9 @@ fn icon(file: &File) -> char {
7878
"git" => '\u{f1d3}',
7979
"go" => '\u{e626}',
8080
"hs" => '\u{e777}',
81+
"htm" => '\u{f13b}',
8182
"html" => '\u{f13b}',
83+
"xhtml" => '\u{f13b}',
8284
"iml" => '\u{e7b5}',
8385
"java" => '\u{e204}',
8486
"js" => '\u{e74e}',
@@ -95,22 +97,31 @@ fn icon(file: &File) -> char {
9597
"mustache" => '\u{e60f}',
9698
"npmignore" => '\u{e71e}',
9799
"pdf" => '\u{f1c1}',
100+
"djvu" => '\u{f02d}',
101+
"mobi" => '\u{f02d}',
98102
"php" => '\u{e73d}',
99103
"pl" => '\u{e769}',
100104
"ppt" => '\u{f1c4}',
105+
"pptx" => '\u{f1c4}',
106+
"odp" => '\u{f1c4}',
101107
"psd" => '\u{e7b8}',
102108
"py" => '\u{e606}',
103109
"r" => '\u{f25d}',
104110
"rb" => '\u{e21e}',
111+
"ru" => '\u{e21e}',
112+
"erb" => '\u{e21e}',
113+
"gem" => '\u{e21e}',
105114
"rdb" => '\u{e76d}',
106115
"rs" => '\u{e7a8}',
107116
"rss" => '\u{f09e}',
108117
"rubydoc" => '\u{e73b}',
109-
"sass" => '\u{e603}',
118+
"sass" => '\u{e74b}',
119+
"stylus" => '\u{e759}',
110120
"scala" => '\u{e737}',
111121
"shell" => '\u{f489}',
112122
"sqlite3" => '\u{e7c4}',
113123
"styl" => '\u{e600}',
124+
"latex" => '\u{e600}',
114125
"tex" => '\u{e600}',
115126
"ts" => '\u{e628}',
116127
"tsx" => '\u{e628}',
@@ -120,19 +131,40 @@ fn icon(file: &File) -> char {
120131
"vim" => '\u{e62b}',
121132
"xml" => '\u{e619}',
122133
"yml" => '\u{f481}',
134+
"yaml" => '\u{f481}',
135+
"rar" => '\u{f410}',
123136
"zip" => '\u{f410}',
137+
"bz" => '\u{f410}',
138+
"bz2" => '\u{f410}',
139+
"xz" => '\u{f410}',
140+
"taz" => '\u{f410}',
141+
"tbz" => '\u{f410}',
142+
"tbz2" => '\u{f410}',
143+
"tz" => '\u{f410}',
144+
"tar" => '\u{f410}',
145+
"tzo" => '\u{f410}',
146+
"lz" => '\u{f410}',
147+
"lzh" => '\u{f410}',
148+
"lzma" => '\u{f410}',
149+
"lzo" => '\u{f410}',
150+
"gz" => '\u{f410}',
124151
"deb" => '\u{e77d}',
125152
"rpm" => '\u{e7bb}',
126153
"exe" => '\u{e70f}',
127154
"msi" => '\u{e70f}',
128155
"dll" => '\u{e70f}',
156+
"cab" => '\u{e70f}',
157+
"bat" => '\u{e70f}',
158+
"cmd" => '\u{e70f}',
129159
"sh" => '\u{e795}',
130160
"bash" => '\u{e795}',
131161
"zsh" => '\u{e795}',
132162
"fish" => '\u{e795}',
133163
"csh" => '\u{e795}',
134164
"ini" => '\u{e615}',
135165
"toml" => '\u{e615}',
166+
"cfg" => '\u{e615}',
167+
"conf" => '\u{e615}',
136168
"apk" => '\u{e70e}',
137169
"ttf" => '\u{f031}',
138170
"woff" => '\u{f031}',
@@ -147,8 +179,11 @@ fn icon(file: &File) -> char {
147179
"sql" => '\u{f1c0}',
148180
"jar" => '\u{e256}',
149181
"jad" => '\u{e256}',
182+
"class" => '\u{e256}',
150183
"war" => '\u{e256}',
151184
"groovy" => '\u{e775}',
185+
"iso" => '\u{e271}',
186+
"lock" => '\u{f023}',
152187
_ => '\u{f15b}'
153188
}
154189
} else {

0 commit comments

Comments
 (0)