chriswalz / bit

Bit is a modern Git CLI
Apache License 2.0
6.04k stars 106 forks source link

Feature: Add support of gitmoji for commit messages #40

Open gensjaak opened 3 years ago

gensjaak commented 3 years ago

Make bit save to propose directly emojis for commit messages.

https://github.com/carloscuesta/gitmoji https://marketplace.visualstudio.com/items?itemName=Vtrois.gitmoji-vscode

chriswalz commented 3 years ago

Can you go into more detail. How would this look when using bit save

chriswalz commented 3 years ago

@gensjaak

gensjaak commented 3 years ago

We could have in this list commit -am -with-emoji "...

Screenshot 2020-10-21 at 11 50 42 AM

...and it would have a sublist with emojis like this in the CLI

Screenshot 2020-10-21 at 11 53 55 AM

And the final output will be something like this bit commit -am "🚀 Version v1.0.1 deployed!"

chriswalz commented 3 years ago

@gensjaak could you provide me a list of all the gitmoji options. I was hoping to see a list somewhere on the github repo but didn't see one.

Here's a PoC. Note bit gitmoji is used but I'm still considering the interface example you had provided image

gensjaak commented 3 years ago

@chriswalz you can find a perfect list here from carloscuesta repos List of emojis: https://github.com/carloscuesta/gitmoji/blob/master/src/data/gitmojis.json

chriswalz commented 3 years ago

@gensjaak I merge a pre-alpha version for gitmoji bit gitmojiI It's not very elegant to use since you select a description and then bit does a find and replace to get the respective emoji.

The reason I set it up this way is because go-prompt has a bug related to emoji as seen here: https://github.com/c-bata/go-prompt/issues/209