Change the 5 default Emojis

AI-generated summary

The discussion revolves around the desire to customize the five default emojis that appear when typing a colon in Discourse. Mikael_Baggström notes that the default list doesn’t update based on user preferences, requiring frequent access to the full emoji list. j.jaffeux explains that the feature isn’t currently supported due to low priority, but acknowledges the idea’s merit. zogstrip suggests using local storage to track emoji usage and improve the default list. j.jaffeux confirms that usage data is already stored in local storage, and proposes a solution to leverage this data. codinghorror supports the idea, emphasizing the benefit of personalized defaults. Richie asks about tone values in the stored data, which j.jaffeux confirms is included. j.jaffeux shares a pull request implementing the feature, which is later confirmed as deployed by j.jaffeux. cjk77 praises the team for improving small details that enhance the user experience.

How can I manually change the 5 default emojis that come up when typing a colon?

I would have thought those 5 defaults would update by my actions (favorites), but they don’t, they are the same regardless. Which means I have to click on “more” and go to the full list every time, since my favorite emojis are not in the 5 default.

Sincerely,
Mike

Hi @Mikael_Baggström,

we don’t have any way to change this at the moment. It’s hardcoded here:

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/components/d-editor.js.es6#L461

While that might not be hard to add it to the API, no one has ever asked this, so we are well under our rule of 3. If it was accepted it would be very low priority probably.

@zogstrip ?

Ah well, never hurt asking at least. And I of course trust you prioritize well in the development process. :slight_smile:

I would personally love that feature :stuck_out_tongue:

I think we could get started with using local storage to count the # of times specific emojis are being used and use that to improve the list of the default emoji used (when we have enough data).

We actually already have “discourse_emojis_emojiUsage” in local storage (used for recently used emojis), but it’s used for the big picker, I could mix them and ensure each of them is populating the same one.

Less work is even better! (I had a feeling we were already storing that information somewhere)

Yes that would be a nice feature, the default is fine but if we have info on which emojis are being used the most by that particular user we could replace it with a better, more specific list.

Does it store the tone value too?

Eg. :+1:t2: :+1:t2:

Yes it does, it will store in this format:

["woman_pilot:t4","smiley"]

This seemed like a nice feature to start the day, pending review/merge, that should do it:

https://github.com/discourse/discourse/pull/8011

Woah that’s fantastic! Thanks! :slight_smile:

This is now deployed :tada:

This is just another example of you folks constantly improving the little details that make Discourse so pleasant to use. Thank you! :two_hearts: