Jump to content

Issues with JSON Config for List Filter


Recommended Posts

I’m using a JSON Config element immediately in front of a list filter.  I am able to successfully set fields such as the list filter placeholder text.  However, whatever I try, I just cannot get it to accept the “items” field. It seems to ignore this.

 

I have tried doing a “Copy Configuration” from the list filter, and then using this verbatim in the JSON Config.  Everything gets set okay, except the items.  These default to whatever is set up in the GUI, and if I change them, it’s the GUI that seems to take precendece over the JSON Config.

 

Here’s an example of my JSON Config:

 

{
  "alfredworkflow" : {
    "config" : {
      "argumenttrimmode" : 0,
      "subtext" : "",
      "withspace" : true,
      "fixedorder" : false,
      "runningsubtext" : "",
      "title" : "Testing List Filter",
      "argumenttype" : 0,
      "items" : "[{\"title\":\"Tom\",\"arg\":\"1\"},{\"title\":\"Bob\",\"arg\":\"2\"}]"
    }
  }
}

 

It feels like a bug - but is there anything else I’m missing?

 

Tom

Link to comment
  • 3 months later...

I am having the same problem. I've used the Script Filter many times in the past and it is very useful, but I would love to be able to use the List Filter without such scripts, by generating the items list inside Alfred with other blocks and then using the JSON Config to configure the List Filter. I also tried this on both latest Alfred v4 and latest Alfred v5.

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