emacs-emojify icon indicating copy to clipboard operation
emacs-emojify copied to clipboard

Broken layout in Org Agenda (C-a a)

Open felipelalli opened this issue 6 years ago • 5 comments
trafficstars

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

felipelalli avatar Jun 08 '19 07:06 felipelalli

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

iqbalansari avatar Jun 09 '19 14:06 iqbalansari

@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.

felipelalli avatar Jun 09 '19 21:06 felipelalli

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

iqbalansari avatar Jun 12 '19 13:06 iqbalansari

@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!

felipelalli avatar Jun 12 '19 15:06 felipelalli

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

iqbalansari avatar Jun 13 '19 07:06 iqbalansari