Espresso Posted September 20, 2021 Posted September 20, 2021 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: 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!
deanishe Posted September 20, 2021 Posted September 20, 2021 You can only use icons for icons, not text. If you want to show preview icons, you'll have to download or generate them. Your JSON is also invalid. The "icon" field should be an object, and the top-level "items" field is missing. Please read the docs.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now