Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Replace emoji not completed with company #7

Open
Stebalien opened this issue Aug 20, 2016 · 8 comments
Open

Replace emoji not completed with company #7

Stebalien opened this issue Aug 20, 2016 · 8 comments

Comments

@Stebalien
Copy link

Currently, if you write out an emoji code but don't end up using company to complete it, it won't be converted to a unicode emoji. It would be nice if company-emoji could, e.g., populate an abbrev table with mappings of emoji short codes to emoji unicode symbols so that this could happen.

Note: I'm not suggesting that company-emoji do a search-and-replace on the document, just replace emoji as they're typed.

@dunn
Copy link
Owner

dunn commented Sep 4, 2016

It's a good idea, but is it possible from within company? Or would there have to be some external change hook after each keypress?

@dunn
Copy link
Owner

dunn commented Sep 4, 2016

(Also, sorry for not replying sooner! This got buried in my notifications.)

@Stebalien
Copy link
Author

My suggestion is to use abbrev (builtin to emacs). However, that might be out of the scope of this package...

@dunn
Copy link
Owner

dunn commented Sep 8, 2016

Ha, as you might have guessed I didn't understand how abbrev worked. It might be out of scope, but I'll take a look!

@Stebalien
Copy link
Author

Stebalien commented Sep 11, 2016

Alternatively (well, additionally), it would be nice to split the emoji database into separate package (so that someone else could write, e.g., abbrev-emoji without having to include the entire database).

@dunn
Copy link
Owner

dunn commented Sep 12, 2016

Oh, that's a good idea. I'll try to get to it this week.

@dunn
Copy link
Owner

dunn commented Nov 6, 2016

I split the list into a separate file with ea0af0c, but I haven't made it a separate package yet.

@Stebalien
Copy link
Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants