Vpl,
I want to second what Mark is asking. I suspect you are a long way down a
solution path, yet the problem is most likely a conceptual one at a higher
level.
Personally I no longer set status flags/tags or fields because when they
change you have to remove previous values. Instead I prefer to determine
the status at any point in time using other information on a tiddler.
For example I have item-started item-completed and item-cancelled on each
task tiddler. Each of these fields can be date/time stamped when started
completed or cancelled
- It is new if item-started exists without a value (and not
completed/cancelled)
- It is work in progress if it item-started is date stamped (and not
completed/cancelled)
[all[current]has[item-started]!has[item-completed]!has[item-cancelled]]
- It is inactive it date stamped completed/cancelled
I have now taken this much further such as allowing item-started at a
future date to schedule its start later and a lot more.
PS The "has[fieldname]" operator asks if a field is present and has a
value, and the "has:field[fieldname]" asks if a field is present (can be
empty)
Regards
Tony
On Friday, 21 December 2018 02:19:30 UTC+11, vpl wrote:
>
> Hi,
>
> I would like to assign a tiddler field a sub set of tags of the current
> tiddler
> Ex:
> My current tiddler has 3 tags: done, current, started
> I want to assign to the field *state* one of these 3 tags (using a regexp)
>
> For that I've first tried to assign the list of current tiddler tags to a
> variable with the hope to be able to apply a regex on this variable ....
>
> <$set name="myVariable" value={{!!tags}}>
> <$text text=<<myVariable>>/>
> </$set>
>
> Works fine, but how to apply now a regex on this *myVariable *such as I
> can set the result to my target field ?
>
> Thanks for your lights !
>
> Regards
>
> Vpl
>
--
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/9217761c-e9fd-4ebb-acd1-9c39ccb1593b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.