cfurrow / alfred-emoji

Alfred workflow for searching and copying emoji

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alfred-emoji

Build Status

An Alfred workflow that makes it easy to search for emoji and copy them to the clipboard 🀘.

screenshot

Installing the Workflow

Download the provided Alfred workflow.

Notice: This workflow relies on JXA (JavaScript for Automation) that is built into macOS.

Usage

emoji [query]

Press return (↡): Copy the symbol of the selected emoji (e.g. 🀣) to your clipboard.

Press alt+return (βŒ₯↡): Copy the code of the selected emoji) (e.g. :rofl:) to your clipboard.

Press shift+return (⇧↡): Copy the default symbol of the selected emoji) (e.g. 🀣) to your clipboard without skin tone modifier.

Press cmd+return (βŒ˜β†΅): Paste the symbol of the selected emoji (e.g. 🀣) directly to your frontmost application.

Set skin tone

To change the emoji skin tone for supported emoji set the skin_tone environment variable in Alfred:

screenshot skin tone settings

Options:

  • No value => πŸ‘
  • 0 => πŸ‘πŸ»
  • 1 => πŸ‘πŸΌ
  • 2 => πŸ‘πŸ½
  • 3 => πŸ‘πŸΎ
  • 4 => πŸ‘πŸΏ
  • random => πŸ‘πŸ» | πŸ‘πŸΌ | πŸ‘πŸ½ | πŸ‘πŸΎ | πŸ‘πŸΏ

After setting skin tone you can still quickly copy the default emoji with the shift modifier.

Automatic Updates

This workflow will automatically check for updates at most once per day. If a new release is found, it automatically downloads and installs the latest version of the workflow. All downloads come directly from official GitHub releases.

Optional Hotkey and Snippet Triggers

Trigger the workflow with either a custom hotkey or a custom snippet.

Building the Workflow

  1. Clone this repository
  2. npm install
  3. npm run build

Loading the Workflow into Alfred

  1. npm run load

Inspiration

This is based on the original work by Carlos Galdino. His project seems to be unmaintained (some emoji don't copy and some newer are missing). Whereas his project is based on the Ruby language, this one is based on JavaScript.

Other

License

MIT License

About

Alfred workflow for searching and copying emoji


Languages

Language:JavaScript 77.8%Language:Shell 22.2%