FortAwesome / Font-Awesome

The iconic SVG, font, and CSS toolkit
https://fontawesome.com
Other
73.46k stars 12.19k forks source link

Icon Request: File Extension Aliases #9969

Open Visiluna opened 7 years ago

Visiluna commented 7 years ago

This is not a request for a new icon so much as it is a request for new aliases to existing icons. It would be great if file type icons could be referenced by their corresponding file extensions.

Here's why.

Let's say I have a library of files in my CMS and I want to display the appropriate file icon next to each file shown on a page. Currently I have to write a bunch of if...then conditions in my template to plug the right keyword ('excel', 'word', 'pdf') into the fa-file-xxx-o class.

If file type icons could be aliased by file extension, then I could simply output fa-file-{ myFile.extension }-o as the class and much magic would happen! When a Word doc is displayed, the above template code would output fa-file-doc-o or fa-file-docx-o, both of which would be aliases for fa-file-word-o. It would really help make my template code more efficient.

I would take as many as I could get, but of particular interest to me are doc, docx, xls, xlsx, ppt, pptx, and mp4. I also use .zip and .pdf extensively, but happily, these already work that way!

Thanks so much for keeping Font Awesome awesome!

sensibleworld commented 1 month ago

This is a quick update to let folks know that we’re refining our icon request workflow behind the scenes, and as part of that we’re going through all open requests and filing them into several new buckets to be addressed. In this case we’ve added this issue to our new list to be created! We can’t promise any firm timelines right now, but this will help us keep track of it.

We’ll update this issue when the icon is released into the wild 🙂