I've tried this code but only get the las TODO
<<forEachTiddler
script 'function extract(str) {
var patt=/\[ \].*/g;
var r = [];
if (patt.test(str)==true) {
r.push(patt.exec(str));
}
return r
};'
write 'extract(tiddler.text).join("\n");'
>>
??
El miércoles, 17 de octubre de 2012 13:28:06 UTC+2, Natxo Oyanguren escribió:
I'd like to calalog all my TODO, that I have in separate tiddlers. All of them have the same estructure:
[ ]I write here my TODO
I'm trying fetcching them all in a new tiddler using forEachTiddlerPlugin, but don't get the right reg expresion.
May be more than a TODO in the same tiddler.
Any help
Thanks