This is a stripped-down version of a single section of Grok TiddlyWiki, optimized for fast loading and readability by search engines. Some features are missing.

For the full Grok TiddlyWiki experience, please visit the wiki version of this page.

Ex:RedATags

18th April 2021 at 8:47am

Write a filter to find all tiddlers that do not link to a tiddler that has a tag which is both red and begins with the letter C, sorted by title in reverse alphabetical order.

Consider a “red” tag to be one with a color code of #ff0000, as in Classifying Tags.

English is terrible at expressing complicated conditions like this, so to be sure you read it right, here's the sentence decomposed hierarchically and written more precisely:

  • All tiddlers matching these criteria:
    • The tiddler does not link to:
      • Another tiddler:
        • That has a tag:
          • Which is red (#ff0000)
          • The name of which begins with a capital letter C
  • Sorted by title in reverse alphabetical order.

Tip 1: The prefix operator returns items from its input whose title begins with a given string of text.

Tip 2: The is[] filter step will find all (non-shadow) tiddlers in the wiki.

A quick way to test your answer is to add a link from a tiddler that appears in the output to any contact; the tiddler should disappear from the list since it's now linking to a tiddler that has a red tag whose name begins with C.

Go to answer: Ex:RedATags/answer