I'm using GTDTW (NathanBowers' implementation). I have a "Summary"
tiddly that collects all my Next actions by grabbing anything colored
red in any tiddly tagged "gtd", using the forEachTiddler macro:
<<forEachTiddler
where
'tiddler.tags.contains("gtd") && tiddler.text.contains("@@color
(red)")'
script
'
function getRedLine(s) {
return s.match(/@@color\(red\):(.*)@@/ig);
}
'
write
'"*[["+tiddler.title+"]] → "+getRedLine(tiddler.text)+"\n"'
>>
So to make an action the Next action, I just make it red.
I want to put a variant of this in each context tidder that collects
all actions for that context. So in the
@someday context tidder, find all lines containing "@someday" in all
project tiddlys tagged "gtd". I tweaked the above to do that, but the
output isn't formatted very usably; all the actions are appended into
a single comma-delimited string, and they all contain their "@context"
tag:
<<forEachTiddler
where
'tiddler.tags.contains("gtd") && tiddler.text.contains("@calls")'
script
'
function getAction(s) {
return s.match(/@calls:(.*)/ig);
}
'
write
'"*[["+tiddler.title+"]] → "+getAction(tiddler.text)+"\n"'
>>
produces:FamilyProject → @calls: call Mom,@calls: Vivian contact info
to Eric
How can I format this to strip out the "@calls" and put each action
into a bulleted list?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "GTD
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/GTD-TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---