"Thoughts" tab filter?

Digging up this zombie of a thread, now that 3.1 is out and it is actually possible to edit the thoughts collection’s definition, I came up with a filter that is well suited to be used alongside a folder-style hierarchy with empty cards that I would like to share with you.

{
  "type": "group",
  "op": "or",
  "filters": [
    {
      "type": "name",
      "op": "equals",
      "arg": ""
    },
    {
      "type": "group",
      "op": "and",
      "filters": [
        {
          "type": "visibility",
          "op": "equals",
          "arg": 1,
          "inv": true
        },
        {
          "type": "group",
          "op": "or",
          "filters": [
            {
              "type": "markup",
              "op": "equals",
              "arg": ""
            },
            {
              "type": "parent_count",
              "op": "equals",
              "arg": 0
            }
          ]
        }
      ]
    }
  ]
}

This filter does not show cards that are priority. The idea is that priority cards, which are being used to build the outline, may very well be empty if used to group children if one tries to avoid boilerplate text.

I also removed the child condition so I can already use unfinished cards as a parent for other cards (can’t make them priority as long as they are not finished, though).

3 Likes