Skip to content

Commit

Permalink
feat: Add emojis for previously unrepresented programming languages a…
Browse files Browse the repository at this point in the history
…nd MacOS extensions
  • Loading branch information
yellow-footed-honeyguide committed Sep 17, 2024
1 parent b17d3ff commit 1e6b7d3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,11 @@ Contributions are welcome! Please feel free to submit a Pull Request.
- Push to the Branch ( `git push origin feature/AmazingFeature` )
- Open a Pull Request

## 📜 License

Distributed under the MIT License. See LICENSE for more information.

## 📞 Contact
## Author
**Sergey Veneckiy**
- Email: s.venetsky@gmail.com
- GitHub: [@yellow-footed-honeyguide](https://github.com/yellow-footed-honeyguide)

Name: Sergey Veneckiy

Email: s.venetsky@gmail.com

## 📜 License
Distributed under the MIT License. See LICENSE for more information.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('facad', 'c',
version : '1.3.0',
version : '1.4.0',
default_options : ['warning_level=3'])

cc = meson.get_compiler('c')
Expand Down
21 changes: 19 additions & 2 deletions src/emoji_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,15 @@ char *get_emoji(const char *path) {
{"xz", "📦"}, {"7z", "📦"}, {"rar", "📦"}, {"deb", "📥"}, {"rpm", "📥"},
{"py", "💻"}, {"sh", "💻"}, {"js", "💻"}, {"html", "💻"}, {"css", "💻"},
{"cpp", "💻"}, {"c", "💻"}, {"java", "💻"}, {"go", "💻"}, {"rb", "💻"},
{"rs", "💻"}, {"php", "💻"}, {"h", "💻"}, {"hpp", "💻"}, {"o", "🧩"},
{"rs", "💻"}, {"php", "💻"}, {"h", "💻"}, {"hpp", "💻"},
{"swift", "💻"}, {"kt", "💻"}, {"scala", "💻"}, {"ts", "💻"}, {"jsx", "💻"},
{"tsx", "💻"}, {"vue", "💻"}, {"dart", "💻"}, {"lua", "💻"}, {"pl", "💻"},
{"r", "💻"}, {"m", "💻"}, {"mm", "💻"}, {"asm", "💻"}, {"s", "💻"},
{"f", "💻"}, {"f90", "💻"}, {"lisp", "💻"}, {"hs", "💻"}, {"ml", "💻"},
{"clj", "💻"}, {"groovy", "💻"}, {"jl", "💻"}, {"ex", "💻"}, {"exs", "💻"},
{"elm", "💻"}, {"coffee", "💻"}, {"ts", "💻"}, {"d", "💻"}, {"cs", "💻"},
{"vb", "💻"}, {"fs", "💻"}, {"sql", "💻"}, {"pas", "💻"}, {"lhs", "💻"},
{"cob", "💻"}, {"o", "🧩"},
{"txt", "📝"}, {"rst", "📝"}, {"log", "📝"}, {"ttf", "🔤"}, {"otf", "🔤"},
{"woff", "🔤"}, {"woff2", "🔤"}, {"pdf", "📚"}, {"djvu", "📚"}, {"epub", "📚"},
{"pem", "🔑"}, {"crt", "🔑"}, {"key", "🔑"}, {"pub", "🔑"}, {"p12", "🔑"},
Expand All @@ -146,7 +154,16 @@ char *get_emoji(const char *path) {
{"rtf", "📄"}, {"xls", "📄"}, {"xlsx", "📄"}, {"ods", "📄"}, {"ppt", "📄"},
{"pptx", "📄"}, {"odp", "📄"}, {"conf", "⚙️"}, {"config", "⚙️"}, {"toml", "⚙️"},
{"cfg", "⚙️"}, {"yaml", "⚙️"}, {"yml", "⚙️"}, {"json", "⚙️"}, {"ini", "⚙️"},
{"target", "🎯"}, {"service", "🚀"}, {"socket", "🔁"}};
{"target", "🎯"}, {"service", "🚀"}, {"socket", "🔁"},
{"app", "📱"}, {"dmg", "💿"}, {"pkg", "📦"}, {"framework", "🧰"},
{"plist", "📋"}, {"scpt", "📜"}, {"swift", "🐦"}, {"xcodeproj", "🛠️"}, {"xib", "🖼️"},
{"mlmodel", "🧠"},{"arobject", "🎭"},
{"sks", "🎮"}, {"car", "🚗"}, {"xcassets", "🗂️"}, {"entitlements", "🔐"},
{"ipa", "📱"}, {"dSYM", "🐛"}, {"icns", "🖼️"},
{"webloc", "🔗"}, {"workflow", "🔄"},{"terminal", "🖥️"},
{"bundle", "🎁"}, {"pb", "📋"}, {"strings", "🔠"}, {"provisionprofile", "🔏"},
{"ccl", "🎨"}, {"scnassets", "🌟"}, {"xcassets", "🗂️"}
};

for (size_t i = 0; i < sizeof(ext_map) / sizeof(ext_map[0]); i++) {
if (strcasecmp(extension, ext_map[i].key) == 0) {
Expand Down

0 comments on commit 1e6b7d3

Please sign in to comment.