29 ms·
Emoji on the command line
- julien_c 11y agoNice work. I think the git log example is contrived though, because you would probably include the real emoji characters in the actual commit title, right?
- hansrodtang 11y agoThe syntax is common on GitHub: https://github.com/atom/atom/blob/master/CONTRIBUTING.md#git-commit-messages https://github.com/atom/atom/blob/master/CONTRIBUTING.md#git...
- johanbrook 11y agoYou can, but I think regular Unicode emojis are more portable, since most systems and browsers support them these days. No need for :fallbacks:.
- rdancer 11y agoEmoji is just Unicode, so putting "I :heart: you" instead of "I ❤️ you" in a Unicode text file is rather, shall we say, na:LATIN SMALL LETTER I WITH DIAERESIS:ve -- this shit belongs in the editor. As implemented by, for example and in no particular order: https://github.com/junegunn/vim-emoji https://github.com/junegunn/vim-emoji, https://github.com/kyuhi/vim-emoji-complete https://github.com/kyuhi/vim-emoji-complete, https://github.com/mattn/emoji-vim https://github.com/mattn/emoji-vim, https://github.com/rhysd/github-complete.vim https://github.com/rhysd/github-complete.vim. On the command line, the command line is the editor, so this program makes a lot of sense!
- kalleboo 11y ago👍
- steckerbrett 11y agoI've seen applications using this sort of thing but it typically slows down rendering log prints horribly. Use ANSII colour or something if you want things to look pretty, not Unicode.
- bentrevor 11y agoAn awk implementation: https://github.com/ecmendenhall/fmj https://github.com/ecmendenhall/fmj
- acheron 11y agoI used to think the "mediaglyphs" in Neal Stephenson's The Diamond Age were far-fetched.
- leni536 11y ago$ echo "I built a :snowman:." | sed -e 's/:snowman:/☃/g' I built a ☃. The wonders of unicode.
- laurentoget 11y agoAm I the only one who does not understand why emoji are included in unicode? Wasn't unicode supposed to be about encoding glyphs used to write human languages, not cliparts designed by entertainment corporations?
- vorg 11y agoThe Unicode Consortium need to keep themselves in a job.