> I want to generate a list that contains one line per todo entry. The
> line should contain the "Some text" part of the TODO, i.e.:
> TODO_WK918.3: Some text
> TODO_WK918.4: Some text 2
The following inline script [1] uses a 'regular expression' to match
and display all occurences of a given text pattern from all tiddlers
with a specified tag
<script>
var out=[];
var pat=/TODO_WK[0-9]{3}(.*)\n/g;
var tids=store.getTaggedTiddlers('_task');
for (var i=0; i<tids.length; i++) {
var match=pat.exec(tids[i].text);
while (match) {
out.push(match[0]);
match=pat.exec(tids[i].text);
}
}
return out.join('');
</script>
[1]
http://www.TiddlyTools.com/#InlineJavascriptPlugin
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios