Description
Emoji autocomplete sorting is not temporally consistent after full match.
Steps to reproduce
- Type out one of the problem emoji listed below except for the last colon
:grinning
- Notice how the autocomplete is sorted as expected
- Type the final ending colon
:grinning:
- Notice the first result is no longer the direct match and instead shows some other emoji with similar names
I haven't nailed down the exactly why it occurs but it's something about emoji which have aliases or other emoji names which are shorter/higher priority and sort higher.
:+1: |
:grinning: |
:heart: |
---|---|---|
![]() |
![]() |
![]() |
:o: |
:hand: |
:man: (:man:_beard: broken syntax tracked by #19304) |
---|---|---|
![]() |
![]() |
![]() |
Expected
The emoji autocomplete sort is the same before and after typing the final ending colon :
. And shows the direct match as the first result.
Other notes
The mismatch does not happen with :sweat:
, :monkey:
, :boat:
, :mailbox:
, :cop:
, :bow:
, :kiss:
, :golf:
which seem like similar viable candidates but the sorting does change after you add the final end colon :
.
Given you have to select the emoji in the emoji autocomplete, #7256, this bug makes it even harder to convert the emoji shortcode to Unicode emoji.
- emoji syntax