1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-02 02:03:14 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/filters/FilterOperator field.tid
2014-04-10 19:56:51 +01:00

21 lines
778 B
Plaintext

created: 20140410103123179
modified: 20140410103123179
tags: filters commonfilters
title: FilterOperator: field
type: text/vnd.tiddlywiki
The ''field'' filter operator filters the current list to leave only the first tiddler that has a distinct value for a specified date field.
For example:
|!Filter String |!Description |
|`[eachday[created]]` |Returns a list of the first tiddler created on each distinct day |
The ''eachday'' operator can be used to group tiddlers. For example, the following wiki text creates a list of the number of tiddlers that were modified on each day:
<$list filter="[!is[system]eachday[modified]!sort[modified]]">
<$view field="modified" format="date" template="DD MMM YYYY"/>: <$count filter="[sameday{!!modified}]"/> modifications
</$list>