Replacing gitmoji-cli with FZF

March 28, 2021 · View on GitHub

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()