carloscuesta/gitmoji-cli

A filter to replace gitmoji code to gitmoji character and replace gitmoji character to gitmoji code

Freed-Wu opened this issue ยท 8 comments

Description of the problem

When we git log --oneline, we will see:

725f254 :bug: Calculate check sum finally
4ec0b07 :technologist: Add receive_and_drop()
6c09fdd :technologist: Add loop for receive_data_frames()
76abe04 :technologist: Add send_and_receive_frame()
06ea47f :art: Move alloc outside loop
a4c27bc :alembic: receive data frames again

I hope gitmoji can provide a command line option to allow user:

git log --oneline | gitmoji --replace-gitmoji-code-to-gitmoji-character

Then we will get:

725f254 ๐Ÿ› Calculate check sum finally
4ec0b07 ๐Ÿง‘โ€๐Ÿ’ป Add receive_and_drop()
6c09fdd ๐Ÿง‘โ€๐Ÿ’ป Add loop for receive_data_frames()
76abe04 ๐Ÿง‘โ€๐Ÿ’ป Add send_and_receive_frame()
06ea47f ๐ŸŽจ Move alloc outside loop
a4c27bc โš—๏ธ receive data frames again
4d978e0 ๐Ÿง‘โ€๐Ÿ’ป Add count_unreceived_data_frames()

Solution

Just replace some characters. It should be very simple!

Alternatives

Don't support it. User must see :bug: not ๐Ÿ›.ZZ

Additional context

Screenshot from 2024-01-04 23-39-21

Validations

Hey!

Thanks for opening such a detailed issue, I think it would add a lot of value to the cli do you want to take stab into implementing this?

Thanks ๐Ÿ˜Š

I am not sure which option name you want? --replace-gitmoji-code-to-gitmoji-character looks too long

Not sure if this is something that should be handled by gitmoji if I'm completely honest. Sounds like a very small amount of people would benefit from this. I don't know of any but it would seem very unlikely to me if tools aren't available already that do exactly what you're asking for.

IMO, gitmoji generates these git commit message containing gitmoji code, so it is fair that it should provide some method to allow user to see these gitmoji character in git log.

IMO, gitmoji generates these git commit message containing gitmoji code, so it is fair that it should provide some method to allow user to see these gitmoji character in git log.

At that point wouldn't it make more sense to configure gitmoji to use the emoji format instead of the code format?

There are many git repo have used gitmoji to generate git commit message. Change their commit messages from code format to emoji format is impossible.

@Freed-Wu In that case something like emojify should be sufficient for what you're looking for. https://github.com/mrowa44/emojify

I try and find emojify miss some gitmoji code:

Screenshot from 2024-01-08 21-00-02

I think it should be the bug of emojify so I'll report it to them.