iqbalansari / emacs-emojify

Display emojis in Emacs
GNU General Public License v3.0
413 stars 40 forks source link

Broken layout in Org Agenda (C-a a) #53

Open felipelalli opened 5 years ago

felipelalli commented 5 years ago

The problem here is that, e.g., :thisemoji: emacs understand as 11 char length and not 1 as it should understand. I guess other tools that relies on char width become broken with emojify-mode as well. I'm not sure if it is possible to fix it, but...

a1

iqbalansari commented 5 years ago

Thanks for the bug report. Yes I am aware of this issue, unfortunately there does not seem to be a way to fix

felipelalli commented 5 years ago

@iqbalansari If you replace the text :smile: by the Unicode char equivalent like 😄 isn't enough to fix the issue? Or not every emoji has an equivalent? There is a command to replace the full-name to the Unicode character? Thank you.

iqbalansari commented 5 years ago

Actually replacing the text with the unicode equivalent would require changing the "actual" contents of the buffer, I do not think that is a good idea

felipelalli commented 5 years ago

@iqbalansari What if a command like M-x emojify-replace-text-to-unicode that acts above the current word in cursor and/or region. It would be a nice feature. Thank you!

iqbalansari commented 5 years ago

That is a good idea, I will add a command to do that