Skip to content

BenjaminOddou/alfred-emoji-wine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

logo-dark

logo-light

made with heart by Benjamin Oddou saythanks Python 3.8+

Welcome to the Alfred Emoji Wine repository: An Alfred Workflow โœจ

โœ… Prerequisites

  • MacOS.
  • Alfred 5. Note that the Alfred Powerpack is required to use workflows.
  • Requires python 3.8 or above.
  • Requires pillow library.

๐ŸŽ๏ธ Data sources

This workflow combines multiple sources (see below) to build a local JSON API (~/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.benjamino.emoji_wine) along with an icons folder with png images.

List of sources :

โฌ‡๏ธ Installation

  1. Download the workflow
  2. Double click the .alfredworkflow file to install

๐Ÿงฐ Setup the workflow

Install Python 3.8 or above. Check your version with :

python --version

Install pillow using Homebrew :

brew install pillow

๐Ÿง™โ€โ™‚๏ธ Invoke the workflow

There is 2 flows in this workflow :

  1. The first one allows you to display emojis. It can be triggered by writing wine keyword.
  2. The second allows you to build the local api according the selected language. You can invoke this flow with the harvest keyword.

You can edit these triggers (flagged with a ๐Ÿ•น๏ธ symbol) in the user configuration panel.

๐Ÿค– Usage of the workflow

Setup variables

  1. ๐ŸŒ Language : select the language you prefer. Here is the full list of supported languages :
Language ISO639-1 EmojiPedia EmojiTerra EmojiAll
๐Ÿ‡ฌ๐Ÿ‡ง English en ๐ŸŸข ๐ŸŸข ๐ŸŸข
๐Ÿ‡ซ๐Ÿ‡ท Franรงais fr ๐ŸŸข ๐ŸŸข ๐ŸŸข
๐Ÿ‡ช๐Ÿ‡ธ Espaรฑol es ๐ŸŸข ๐ŸŸข ๐ŸŸข
๐Ÿ‡ต๐Ÿ‡น Portuguรชs pt ๐ŸŸข ๐ŸŸข ๐ŸŸข
๐Ÿ‡ฎ๐Ÿ‡น Italiano it ๐ŸŸข ๐ŸŸข ๐ŸŸข
๐Ÿ‡ฉ๐Ÿ‡ช Deutsch de ๐ŸŸข ๐ŸŸข ๐ŸŸข
๐Ÿ‡ณ๐Ÿ‡ฑ Nederlands nl ๐ŸŸข ๐ŸŸข ๐ŸŸข
๐Ÿ‡ณ๐Ÿ‡ด Norsk no ๐ŸŸข ๐Ÿ”ด ๐Ÿ”ด
๐Ÿ‡ธ๐Ÿ‡ช Svenska sv ๐ŸŸข ๐ŸŸข ๐ŸŸข
๐Ÿ‡ฉ๐Ÿ‡ฐ Dansk da ๐ŸŸข ๐ŸŸข ๐ŸŸข
๐Ÿ‡ฎ๐Ÿ‡ฉ Melayu ms ๐ŸŸข ๐ŸŸข ๐ŸŸข
๐Ÿ‡จ๐Ÿ‡ณ ไธญๆ–‡ zh ๐ŸŸข ๐ŸŸข ๐Ÿ”ด
๐Ÿ‡ฏ๐Ÿ‡ต ๆ—ฅๆœฌ่ชž ja ๐ŸŸข ๐ŸŸข ๐ŸŸข
๐Ÿ‡ฐ๐Ÿ‡ท ํ•œ๊ตญ์–ด ko ๐ŸŸข ๐ŸŸข ๐ŸŸข
๐Ÿ‡ฎ๐Ÿ‡ณ เคนเคฟเค‚เคฆเฅ€ hi ๐Ÿ”ด ๐Ÿ”ด ๐ŸŸข
๐Ÿ‡ฎ๐Ÿ‡ณ เคฎเคฐเคพเค เฅ€ mr ๐Ÿ”ด ๐Ÿ”ด ๐Ÿ”ด
๐Ÿ‡ฎ๐Ÿ‡ณ เฐคเฑ†เฐฒเฑเฐ—เฑ te ๐Ÿ”ด ๐Ÿ”ด ๐Ÿ”ด
๐Ÿ‡ง๐Ÿ‡ฉ เฆฌเฆพเฆ‚เฆฒเฆพ bn ๐Ÿ”ด ๐Ÿ”ด ๐ŸŸข
๐Ÿ‡ฑ๐Ÿ‡ฐ เฎคเฎฎเฎฟเฎดเฏ ta ๐Ÿ”ด ๐Ÿ”ด ๐Ÿ”ด

All emojis aren't translated in all languages. Some languages aren't supported by emoji dictionnaries.

If you wish to use another language, open a GitHub issue here.

  1. โœ‚๏ธ Padding : Add transparent margins to icons (in pixels).

  2. ๐Ÿ“– Emoji Dictionary : Select your online emoji dictionary.

  3. ๐ŸŒˆ Skin Tone : Select your preferred skin tone.

  4. ๐ŸŽท Notification sound : Personalize the sound of the workflow notification.

Search an emoji

Trigger the workflow with wine keyword and search for an your emoji in the selected language.

search

Workflow actions

  1. Press โŽ on the selected emoji to copy it to the clipboard.
  2. Press โŒ˜โŽ on the selected emoji to paste it to the frontmost application.
  3. Press โ‡งโŽ on the selected emoji to open its emojipedia page in the selected language.

Refresh the API and configure tags

Use the harvest keyword.

In the following menu you'll find :

  1. A button to refresh the API for the selected language.
  2. The Tags section for the selected language.
  3. The last API information with date and time of the last update, number of emojis and the language selected when the API was created.

harvest

Tags can be created and linked to one or multiple emojis.

tag

This allows to search emojis using custom words or phrases.

search_tag

Tags are language specific meaning that when created they will impact only the selected language. They are also persistent overtime meaning that if you switch language or refresh the API, they will not be erased. Tags are stored under JSON files located in the afred_workflow_data folder (~/Library/Application Support/Alfred/Workflow Data/com.benjamino.emoji_wine).

โš–๏ธ License

MIT License ยฉ Benjamin Oddou