Skip to content

Instantly share code, notes, and snippets.

@Bhupesh-V
Last active March 28, 2021 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bhupesh-V/43bc0f2d8b84ea6c2ce767de56260b34 to your computer and use it in GitHub Desktop.
Save Bhupesh-V/43bc0f2d8b84ea6c2ce767de56260b34 to your computer and use it in GitHub Desktop.
Replacing gitmoji-cli with FZF

Please read here on how to use this CSV file with FZF. The original emoji data has been taken from gitmoji-cli

Note: 2 character width emoji ⬆️ has been replaced with ⏫️

The following python code was used to convert gitmojis.json to CSV

#!/usr/bin/env python3

import json, csv

def get_emojis():
    with open("gitmojis.json", "r") as emojis:
        data = json.loads(emojis.read())
    with open("gitmojis.csv", 'w') as f:
        wr = csv.writer(f, delimiter=' ')
        for emoji in data["gitmojis"]:
            wr.writerow([emoji["emoji"],emoji["description"]])

if __name__ == '__main__':
    get_emojis()
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 1.
🎨 "Improve structure / format of the code."
⚡️ "Improve performance."
🔥 "Remove code or files."
🐛 "Fix a bug."
🚑 "Critical hotfix."
✨ "Introduce new features."
📝 "Add or update documentation."
🚀 "Deploy stuff."
💄 "Add or update the UI and style files."
🎉 "Begin a project."
✅ "Add or update tests."
🔒 "Fix security issues."
🔖 "Release / Version tags."
🚨 "Fix compiler / linter warnings."
🚧 "Work in progress."
💚 "Fix CI Build."
⏬️ "Downgrade dependencies."
⏫️ "Upgrade dependencies."
📌 "Pin dependencies to specific versions."
👷 "Add or update CI build system."
📈 "Add or update analytics or track code."
♻️ "Refactor code."
➕ "Add a dependency."
➖ "Remove a dependency."
🔧 "Add or update configuration files."
🔨 "Add or update development scripts."
🌐 "Internationalization and localization."
✏️ "Fix typos."
💩 "Write bad code that needs to be improved."
⏪ "Revert changes."
🔀 "Merge branches."
📦 "Add or update compiled files or packages."
👽 "Update code due to external API changes."
🚚 "Move or rename resources (e.g.: files, paths, routes)."
📄 "Add or update license."
💥 "Introduce breaking changes."
🍱 "Add or update assets."
♿️ "Improve accessibility."
💡 "Add or update comments in source code."
🍻 "Write code drunkenly."
💬 "Add or update text and literals."
🗃 "Perform database related changes."
🔊 "Add or update logs."
🔇 "Remove logs."
👥 "Add or update contributor(s)."
🚸 "Improve user experience / usability."
🏗 "Make architectural changes."
📱 "Work on responsive design."
🤡 "Mock things."
🥚 "Add or update an easter egg."
🙈 "Add or update a .gitignore file."
📸 "Add or update snapshots."
⚗ "Perform experiments."
🔍 "Improve SEO."
🏷️ "Add or update types."
🌱 "Add or update seed files."
🚩 "Add, update, or remove feature flags."
🥅 "Catch errors."
💫 "Add or update animations and transitions."
🗑 "Deprecate code that needs to be cleaned up."
🛂 "Work on code related to authorization, roles and permissions."
🩹 "Simple fix for a non-critical issue."
🧐 "Data exploration/inspection."
⚰️ "Remove dead code."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment