I imagine that you could use some macros and some filtering to set a links 
class based on the target tiddler, something like

\define GetLinkClass(tagUsed)
"$tagUsed$_class"
\end

\define MakeNeatLinkEntry(tiddler tagUsed)
<$list filter='[[$tiddler$]has[$tagUsed$]]'>
<$link to="$tiddler$" class=<<GetLinkClass $tagUsed$>>>$tiddler$</$link>
</$list>
\end

\define NeatLink(tiddler)
<<MakeNeatLinkEntry $tiddler$ tag1>>
<<MakeNeatLinkEntry $tiddler$ tag2>>
<<MakeNeatLinkEntry $tiddler$ tag3>>
\end

Then name the css class associated with tag1 tag1_class, and the one for 
tag2 tag2_class (or some other name you can automatically generate based on 
the tag name).

the problem would come when the target tiddler has more than one of the 
tags. This is also a pretty cumbersome way to do it. And I haven't actually 
tested it so it may not work at all. Good luck!

For the second part you may be able to do this in version 5.1.8 but it 
won't work in the current version.
Hopefully being able to trigger action widgets from a link widget will be 
included in version 5.1.8, which, along with the changes to how action 
widgets are invoked, will let you do something like this:

<$link to=SomeTiddler>SomeTiddler
<$reveal type='match' state=SomeTiddler text=''>
<$fieldmangler tiddler=SomeTiddler>
<$action-sendmessage $message='tm-add-tag' $param=TagName/>
</$fieldmangler>
</$reveal>
</$link>

which will, if the target tiddler has an empty text field (which in would 
usually mean it doesn't exist) it will create the tiddler and add the tag 
TagName to it, or if the tiddler exists and just has an empty text field it 
will just add the tag TagName to the tiddler.

Both of these things can be done using javascript, but this may be a 
simpler way. That is if any of it works. I am feeling lazy and didn't test 
either one yet.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to