hedgedoc / hedgedoc

HedgeDoc - Ideas grow better together

Home Page:https://hedgedoc.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve standard emoji support

aschrijver opened this issue · comments

Which part of the project should be enhanced?

Typing of emoji's and using the emoji picker

Is your enhancement request related to a problem? Please describe.

Hedgedoc is a great and easy-to-use editing tool. Emoji typing support is a weak spot still.

Frustrating is that common emoji's are missing. Some comparisons with Github emoji's:

  • 🤗 --> :hugs: (missing)
  • 🫂 --> :people_hugging: (missing)
  • 🤔 --> :thinking: (missing)

I know there's different conventions in naming that are in use across the web. Not sure what the standard is, but HedgeDoc seems to be following the same as what Github does, which is not a bad choice. Still, this may lead to difficulties:

  • 🤔 --> :thinking_face: (e.g. in Matrix and Discourse software)

A final frustration in the emoji support is that it often happens that the emoji picker dialog is not triggered when typing an emoji. Moving the cursor back and forth, deleting characters and typing again does not do the trick. Go to a fresh line, start the emoji, does work.

The emoji picker itself has no option to click through to a full emoji list dialog where one can get an overview of all supported ones. Github has this neither, but many softwares do, including e.g. the keyboard apps on mobile phones.

Describe the solution you'd like

In summary of the problems I experience, this can be improved:

  • Support the full set of emoji's, but at least support the common ones.
  • Use familiar glyphs that are most commonly used (HedgeDoc set has a different drawing style).
  • Ensure that the emoji picker appears consistently when it is invoked by typing.

Optional improvements to consider:

  • Click-through from 'quick emoji picker' to 'overview picker' dialog listing all supported emoji's.
  • Maybe consider: Setting to switch to different emoji naming standard if there's common alternatives.

Describe alternatives you've considered

Just to mention the workaround I sometimes use:

Have the Emojipedia website open in an adjacent browser tab, and copy/paste the Unicode chars from there into the pad. That is far from ideal, and I need to have the emoji code in some occasions.

Additional context

Tested with the Demo pad from your website, to see if the latest version have all the issues I listed above.

Thank you very much for the great work that project has done! :kudos: ;)

Hey @aschrijver,

thanks for your feedback. As stated in the readme file, we're currently focusing on the development of HedgeDoc 2 and therefore don't add new features to HedgeDoc 1.x.

The emoji support in HedgeDoc 1.x is indeed very outdated. For the upcoming version 2.0 we're using a more up-to-date dataset (emojibase-data) and native Unicode characters (with the twemoji-font) instead of images for rendering. We've also added an emoji picker.

The example shortcodes you mentioned work in HedgeDoc 2, however the first one seems to be called :hug: instead of :hugs:.

image

image

Feel free to test it out on the current public 2.0 test instance at https://hedgedoc.dev. Be aware that this instance is updated and cleared every 24 hours.

I'm going to close this issue, but feel free to comment or opening new issues in case of other problems.

Thank you! This looks adorable 😍