Work on better emoji support

This is awesome, so happy you are making good progress here.

I think there is an order of operations that is a bit critical here:

  1. We need to choose a syntax for skin tone. Cause this is going to feed in to all of the work. Update auto completer to support new syntax.

  2. We need to update our emoji sets to absolute latest and update all the rake tasks, fine for moving the aliases around so they are centralized if it makes sense.

  3. We need to revamp the emoji picker.

  4. Investigate if there is any way we can normalize our emoji picking so the new minimal version of the control can also be used for : completion.

Each one of these can be shipped by itself and each builds on the previous task.

I think the first super critical task in the list is picking syntax.

We have a few options

  1. :man::skin-tone-5:

  2. :man::st5:

  3. :man:st5:

  4. :man:tone5:

  5. :man:t5:

  6. :man:5:

Personally, I prefer :man:t5: for very subtle but important reasons.

  • I type : and the emoji picker pops up, I type m a and press ENTER on man.

  • Cursor is placed here: :man:^

  • I type t a new picker pops up and lets me pick between the tones

  • I type ENTER

  • Profit :dollar: :money_mouth: :sunny: :moneybag:

The succinct version :man:1: does not give an opportunity to pick a tone visually, which is very annoying. The other forms are just too verbose.

I am strongly against supporting multiple syntax forms here, we got to pick a winner.

Strongly recommend against even trying to tackle this, it creates a situation where every markdown document needs attached metadata about defaults, otherwise it is not interchangeable. Changing defaults is a nightmare cause you need to rebake everything.

I think longer term the apple approach is pretty sane but also quite tricky to implement. What they do is, if I last selected :man:3: next time it will try to pick :man:3: when I type :man but it is also riddled with complexity.

10 Likes