Closed mikelorant closed 9 months ago
@carloscuesta Any thoughts on this proposal?
Hey!
Thanks for opening the issue 8 years ago already your comment made me feel old 🤣
I think you have a valid point and still while some terminals will not support it people can always change back to the :shortcode:
format so looks good to me!
Pull request #1248 created making this change.
Unit tests pass successfully and deleting my global config and creating a new one with gitmoji -g
showed the correct default set.
Discussion
There are significant inconsistencies with some Git remote repository providers such as BitBucket when displaying Emoji shortcodes. BitBucket does display shortcodes for the commit title, but not the PR title and list of PRs.
There is also requirement to modify the pager (or other tricks) to allow
git log
to display correctly.After investigation it became clear for the reasoning why shortcodes were chosen as the default.
While the decision may have been appropriate 8 year ago when
gitmoji-cli
was first released, it does beg the question, is it worth considering changing the default behaviour now?Terminals are considerably more advanced on all platforms and the standard Gitmoji set is simple enough that all terminals would display them correctly nowadays. I am at a loss to come up with any other reason to keep the shortcode format as the default.
As someone who has developed their own implementation of
gitmoji-cli
, I still aim to maintain consistency and so have kept the shortcode format the default for my CLI tool as well. However, I think it may be now worth reviewing this decision and seeing ifemoji
makes more sense going forward.Validations