Jump to content

It is possible to show Rich Text content of change colors in an JSON to Alfred?


Recommended Posts

Posted (edited)

I have a workflow that requires a lot of queries in a database. The workflow works perfectly, but I would appreciate if there is a way to put some rich text content (like italic, bold) or if there there is also a way to change color of the display result. 

In short, the output of may script is the standard Alfred JSON:

 

    result = {
        "title": "word1 word2 word3",
        "subtitle": "",
        "arg": "",
    }  

 

So, Alfred shows the "word1 word2 word3" in the window. Now my questions: 

 

1. It is possible, for example, to put italic in "word2" (the output: word1 word2 word3) or to bold "word3" (the output: "word1 word2 word3")

 

2. It is possible to change the color of some parte of the content, for example, change "word1" to red (the output 
"word1 word2 word3")?

 

 

Edited by JustAnotherGuy
  • JustAnotherGuy changed the title to It is possible to show Rich Text content of change colors in an JSON to Alfred?
Posted

I think this is one of the sacrifices the team took to make sure Alfred is always as fast as possible. No styling. You are limited to the left icons, emojis or glyphs to give items a unique appearance. 

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...