On May 6, 12:34 am, Eric Shulman <[email protected]> wrote:
> > 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

It works very well!!
Thanks a lot.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to