louiszuckerman / alfred-emoji-workflow.py

Alfred workflow for searching emoji codes based on alfred-emoji-workflow

Home Page:https://github.com/louiszuckerman/alfred-emoji-workflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search Emoji codes and symbols using Alfred 2

This simple workflow lets you search emoji codes and their symbols.

I ported this from ruby to python from my fork of the original alfred-emoji-workflow. Many thanks to carlosgaldino for his original work on this Alfred workflow.

Copy the emoji code to use on Campfire, GitHub, etc.

Usage: emoji [query]

After you hit enter the code of the selected emoji will be copied to your clipboard.

Copy the actual emoji symbol to use on any OS X app.

Usage: symoji [query]

After you hit enter the symbol of the selected emoji will be copied to your clipboard.

Customizing the keywords:

If you don't like the keywords that are used for triggering the search you can customize it directly on Alfred. Some suggested using : for searching the emoji code and emoji for the actual symbols.

Last but not least:

  • The query argument is optional for both commands. If you don't specify a query, the whole list of emoji will be presented.

  • __You can also search an emoji using related words. Check the full list

  • You can add your own related words by editing custom_related.json and re-running generate.py.

DOWNLOAD

Developing

There are two steps to developing...

  1. Run the generate.py script to produce related.json & symbols.json (and any new images)

     python generate.py
    
  2. Install data files into Alfred

Generating the Emoji and Related Words

The generate.py script pulls the official full emoji list from the unicode.org website and...

  • Extracts the Apple icons
  • Generates the symbols.json file with a map of names to symbols
  • Generates the related.json file with a map of names to annotation keywords & custom related words from custom_related.json

Installing data files into Alfred

  1. Open Alfred preferences and navigate to this workflow
  2. Open the configuration for either of the script actions
  3. Click Open Workflow Folder
  4. Copy the changed symbols.json & related.json into the workflow folder
  5. If there are any new images in the images/ folder, copy those as well
  6. Enjoy!

About

Alfred workflow for searching emoji codes based on alfred-emoji-workflow

https://github.com/louiszuckerman/alfred-emoji-workflow

License:Other


Languages

Language:Python 100.0%