Maybe I should clarify that a little. Here's what I'm attempting;
<<forEachTiddler
where
'tiddler.tags.containsAll(["foo"])'
write
'tiddler.tags.XXX("bar")'
>>
XXX is 'supposed to' be some magic word resulting in adding 'bar' as a
tag to all the relevant tiddlers.
(I even tried tiddler.tags.c'monyouknowwhatIwant("bar") ...but no
cigar!)
Thanks
/Mat
On Jan 18, 11:36 pm, Amzg <[email protected]> wrote:
> I really appreciate everyones help! I'm fooling around with all the
> great suggestions and will report how it works out.
>
> - Meanwhile; how do Iinserta tag directly (via forEachPlugin)? What
> is the command? (and without erasing all existingtags.... but if
> there's an option to overwrite a specific tag, that would be good
> actually)
>
> I've tried;
> tiddler.tags.X("foo") with X as 'insert', 'add', 'write' but nope...
> or maybe ("foo") is syntactically wrong... or maybe it's not
> possible...?
>
> Thanks
>
> /Mat
>
> On Jan 18, 4:31 am, cmari <[email protected]> wrote:
>
> > Hi Mat!
> > It sounds to me as though you're looking for two separate, though
> > related, things (but possibly more!):
> > 1. (Retroactively) addtagsto existing tiddlers.
> > 2. From now on, automatically add certaintagswhen creating new
> > tiddlers
> > If you'd prefer (manual) checkboxes to the more automatic AutoTagger,
> > I can think of a couple of other options:
>
> > For the first task: the script you found (I recognized it because I
> > was the one who requested it) was one that Eric offered for changing/
> > adding custom fields to existing tiddlers. It was extremely useful for
> > making one-time, global changes, and it certainly could be tweaked so
> > that it would affecttagsinstead of fields. But you could also use
> > the CheckboxPlugin and a forEachTiddler macro and check the boxes
> > yourself, as in:
> > <<forEachTiddler where 'tiddler.tags.containsAll(["Private",
> > "MyStuff"])'
> > write '"|<<checkbox [["+tiddler.title+"|Encrypt(foo)]]$))|
> > [["+tiddler.title+"]]|[["+tiddler.tags.join("]], [[")+"]]|\n"' begin
> > '"|Add Encrypt(foo)|Title|Tags|h\n"'>>
>
> > For the second part: if you're using mptw, you could take advantage of
> > the ToggleTag and HideWhen plugins and add something to your
> > ViewTemplateToolbar like:
> > <span macro="showWhenTaggedAll Private MyStuff"> <span
> > macro="toggleTag Encrypt(foo)"></span></span>
> > <span macro="showWhenTaggedAll Private HerStuff"> <span
> > macro="toggleTag Encrypt(bar)"></span></span>
> > cmari
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---