Jump to content

How to display Unicode characters as icons in Alfred?


Recommended Posts

I am working on a workflow that allows users to search through a list of Unicode icons. The most likely results are then returned to Alfred so that they may be displayed. The problem I am having is figuring out how to display the Unicode icons in Alfred. For instance, I see the following:

 

1176954820_ScreenShot2021-09-20at3_29_42PM.thumb.png.c31a7573a89efe4aca23d88b392e531b.png

 

When I return this JSON

 

[
  {
    uid: '1F5B1',
    title: 'computer mouse',
    subtitle: '1F5B1',
    arg: '1F5B1',
    autocomplete: 'computer mouse',
    icon: '🖱️'
  },
  {
    uid: '1F5A8',
    title: 'printer',
    subtitle: '1F5A8',
    arg: '1F5A8',
    autocomplete: 'printer',
    icon: '🖨️'
  },
  {
    uid: '1F50B',
    title: 'battery',
    subtitle: '1F50B',
    arg: '1F50B',
    autocomplete: 'battery',
    icon: '🔋'
  },
  {
    uid: '2328',
    title: 'keyboard',
    subtitle: '2328',
    arg: '2328',
    autocomplete: 'keyboard',
    icon: '⌨️'
  }
]

 

So my question is, how do I display the unicode icon in Alfred? Thank you in advance!

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...