News for hackers. Stuff that matters.
Re:Emoji on the command line by julien_c on Saturday July 25, 2015 @05:19AM (#9947080)
Nice 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?
Re:Emoji on the command line by rdancer on Saturday July 25, 2015 @07:36AM (#9947285)
Emoji 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/kyuhi/vim-emoji-complete, https://github.com/mattn/emoji-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!

Re:Emoji on the command line by hansrodtang on Saturday July 25, 2015 @05:45AM (#9947119)
Re:Emoji on the command line by johanbrook on Saturday July 25, 2015 @07:33AM (#9947279)
You can, but I think regular Unicode emojis are more portable, since most systems and browsers support them these days. No need for :fallbacks:.
Re:Emoji on the command line by acheron on Saturday July 25, 2015 @09:21AM (#9947498)
I used to think the "mediaglyphs" in Neal Stephenson's The Diamond Age were far-fetched.
Re:Emoji on the command line by laurentoget on Saturday July 25, 2015 @02:47PM (#9948549)
Am 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?
Re:Emoji on the command line by vorg on Saturday July 25, 2015 @06:18PM (#9949256)
The Unicode Consortium need to keep themselves in a job.
Re:Emoji on the command line by bentrevor on Saturday July 25, 2015 @08:40AM (#9947424)
Re:Emoji on the command line by kalleboo on Saturday July 25, 2015 @05:38AM (#9947112)
👍
Re:Emoji on the command line by leni536 on Saturday July 25, 2015 @09:32AM (#9947525)

   $ echo "I built a :snowman:." | sed -e 's/:snowman:/☃/g'
   I built a ☃.
The wonders of unicode.
Re:Emoji on the command line by steckerbrett on Saturday July 25, 2015 @07:38AM (#9947293)
I'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.