This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

Intersection Filter Run Prefix

10th July 2023 at 7:33am
purposefind the intersection of titles from previous runs with titles in this filter
inputall titles from previous filter runs
outputthe titles that are present in both the result of this filter run and the output from previous runs
Introduced in v5.1.23
:intersectionrun

The filter output from previous runs is set aside. The :intersection filter run is started with all tiddler titles as input. Once this filter run has completed, the output is compared to the set-aside output. A new output is produced that contains only titles that appeared in both the set-aside output and the latest output. The order of titles in the output is preserved from the accumulated results.

Difference from :and / +

The key difference between :intersection and :and (or +) is what they receive as input:

  • :and / + feeds the accumulated results so far as input to the filter run. Operators in the run can only see and work with titles already in the results.
  • :intersection feeds all tiddler titles as input to the filter run (just like an unprefixed run), then keeps only titles that also appear in the accumulated results.

This means :intersection can match titles using operators that need to start from the full tiddler pool. See Interchangeable Filter Run Prefixes for more details.

Intersection Filter Run Prefix (Examples)