Giter VIP home page Giter VIP logo

alfred-emoji's Introduction

alfred-emoji

Build Status

An Alfred workflow that makes it easy to search for emoji and copy them to the clipboard ๐Ÿค˜.

screenshot

Note About Available Emoji

The workflow is built against the latest available macOS within the GitHub continuous integration infrastructure. This means some emoji may be missing until the GitHub infrastructure is updated. It also means that some emoji may be present in the workflow that do not exist on your system if your system is running an earlier version of macOS.

If this is not desired, follow the instructions below for generating the workflow on your own system.

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

alfred-emoji's People

Contributors

adamkiss avatar glennmen avatar jsumners avatar kemayo avatar oscard0m avatar rmm5t avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.