tig icon indicating copy to clipboard operation
tig copied to clipboard

Feature request: Render "gitmoji" markdown as emoji in commit messages

Open tony opened this issue 3 years ago • 0 comments
trafficstars

TLDR: Render :art: as 🎨 in commit messages

This may be closed again, but I believe the last mention didn't account for this

History

Last issue: #551

Closed Jul 8, 2017 via: https://github.com/jonas/tig/issues/551#issuecomment-313854404

Emojis are rendered since https://github.com/jonas/tig/commit/800199e47fc8326a4a2ce25f8f3bb91fed2e3fbf. Closing this one as out of scope.

After closing, quite a few users still wanted gitmoji, see https://github.com/jonas/tig/issues/551#issuecomment-429872779

In my case, some projects of mine use gitmoji in every commit message, while others just use a plain-old emoji now and then.

Example

Assume https://github.com/jonas/tig/blob/a4e569d/test/main/emoji-test

test_setup_work_dir()
{
	git_commit -m "🚑 Fix bug"
	git_commit -m "🐧 Fix Linux issue"
	git_commit -m "✨ Add new feature"
	git_commit -m "🎨 Reformat the code"
	git_commit -m "📚 Document new feature"
	git_commit -m "💄 Polish the UI"
}

Git emoji would be:

test_setup_work_dir()
{
	git_commit -m ":ambulance: Fix bug"
	git_commit -m ":penguin: Fix Linux issue"
	git_commit -m ":sparkles: Add new feature"
	git_commit -m ":art: Reformat the code"
	git_commit -m ":books: Document new feature"
	git_commit -m ":lipstick: Polish the UI"
}

but it's render to the same output.

tony avatar Jun 04 '22 19:06 tony