sindresorhus / emoj

Find relevant emoji from text on the command-line :open_mouth: :sparkles: :raised_hands: :horse: :boom: :see_no_evil:
MIT License
2.36k stars 57 forks source link

Add support for changing emoji skin tone #19

Closed jonnybel closed 7 years ago

jonnybel commented 7 years ago

Fixes #4

It implements the Up/Down key presses to change the skin tone in interactive mode, and the --skin-tone flag which affects both modes.

Two considerations:

sindresorhus commented 7 years ago

I think this can be achieved by writing this option to a file (which to me sounds a bit overkill, for saving only one numeric value)

It might be overkill, but it's a one time thing for us, but will save users lots of time. Otherwise they'll have to deal with setting an environment variable or shell alias, not all users of emoj even know how to do that. You can achieve the saving in a couple of lines with https://github.com/sindresorhus/conf

jonnybel commented 7 years ago

I understand and agree, I'll make the changes.

You can achieve the saving in a couple of lines with https://github.com/sindresorhus/conf

This looks useful, thanks!

sindresorhus commented 7 years ago

This looks very good @jonnybel. Nice work! 👌✨

jonnybel commented 7 years ago

@sindresorhus Thanks 😃 Happy to contribute!

sindresorhus commented 7 years ago

And congrats on your first pull request. My first pull request was fixing a typo.

sindresorhus commented 7 years ago

I discovered a tiny issue right after merging https://github.com/sindresorhus/emoj/commit/8376b36756868d97ccdba0f2cf86cbe0d614b3b6, but was easy to fix.