Simple and short solutions usually depend on a cheat. My cheat here is that
I assume that these tiddlers will never have any tag value other than
"theme" and "mytag". This way I don't have to get out the field mangler and
delete tags -- I just reset to either "mytag" or "mytag theme".
\define act_change()
<$list filter="[tag[mytag]tag[theme]]">
<$action-setfield tags="[[mytag]]" />
</$list>
<$action-setfield $tiddler={{changeme}} tags="mytag theme"/>
\end
<$select tiddler="changeme" actions=<<act_change>>>
<$list filter="[tag[mytag]]">
<option value=<<currentTiddler>>><$view field="title"/></option>
</$list>
</$select>
I imagine now someone is going to show up and demonstrate how to do this in
one line ;-)
-- Mark
On Sunday, July 29, 2018 at 12:28:26 PM UTC-7, Mohammad wrote:
>
> Assume you have 10 tiddlers like
> tid-A
> tid-B
> tid-C
> ...
> ...
>
>
>
> all tagged with mytag. Now assume *only one of them* can have the second
> tag theme. To apply the second tag, assume a select widget can be used!
> What is the simple and short solution to apply the second tag?
>
> Note that each time you select a tiddler to be tagged with second tag e.g.
> theme
>
>
> *Mohammad*
>
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/33ab5c1f-bd9e-4009-b405-9fac102f207c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.