warpling / Macmoji

Slack/GitHub/Trello emoji for your mac! 😁 💥 💻
MIT License
1.72k stars 71 forks source link

Keyboard Maestro Version #14

Closed rael9 closed 8 years ago

rael9 commented 8 years ago

I've added a Keyboard Maestro 6 macro version of the emoji substitution, which works in Chrome, and should work pretty much anywhere, as long as you have/use Keyboard Maestro.

warpling commented 8 years ago

This is rad @rael9! Mind adding the emoji in the latest commit before we merge?

If you created this with a script it'd be fantastic to have that hosted somewhere (See @lumaxis's Alfred port in #16) so updates can be made easily in the future.

I'm also very open to ideas on how we can best organize these different substitution files!

rael9 commented 8 years ago

Sure can! I didn't use a script, but I was literally just about to create one for that very reason. You read my mind 😄

rael9 commented 8 years ago

@warpling The emoji are up-to-date, and I added a python script to keep things up to date. Just need to run 'python update-km.py' while in the scripts directory.

rael9 commented 8 years ago

@warpling I have updated the script so that it can be used for other formats as well. If other formats are needed, they can be added to the settings.json file in the scripts folder with a name (which corresponds to the filename) and a data_format (which uses the {placeholder} and {emoji} placeholders to designate where those values go. Then a template can be added to the templates folder with a {0} where the data should go that has the same filename with .template at the end. Run the script, and all of the files are generated 😄

Let me know what you think.

warpling commented 8 years ago

This is fantastic! Thank you so much @rael9!!