Just thinking out loud...

As you may know, the coming v5.2.0 will feature unrestricted field names. 
This is very big news! This will push fields to a substantially more 
prominent position because *fields can then be directly mapped to tiddlers*. 
I mean, just look at this:

*"In the current tiddler, get the values of the fields with names that 
match a filtered set of tiddler titles." *

\define getdata() {{$(curr)$!!$(field)$}}
<$vars curr=<<currentTiddler>>>
<$list filter="...filteredtiddlers..." variable=field>
<<getdata>>
etc

So, the field values could be a relationship between the current tiddler 
and those other tiddlers. For example:

title: Adam
Barbara:mother
Caesar:father
David:friend

...or from the other direction, i.e *"In a filtered tiddler list, get the 
values from the field(s) named as current tiddler"*:

<$vars curr=<<currentTiddler>>>
<$list filter="...filteredtiddlers..." variable=field>
<$transclude field=<<curr>>/>
etc

Another use: *"Transclude the content of a filtered set of tiddlers using 
templates. But which specific template is used depends on the relation the 
tiddler has with the current tiddler"*

\define getdata() {{$(tid)$||$(template)$}}
<$vars curr=<<currentTiddler>>>
<$list filter="..." variable=tid>
<$vars template={{{ [<curr>get<tid>] }}}>
<<getdata>>
etc

...so, for example, if the relationship with current is "closest family" 
then apply the template that also shows a photograph.

Here the "getdata" macro only does a template transclusion but if the field 
values contain complex data such as "Queen Elizabeth: sister queen [[pole 
dancer]]" the macro could of course do much more complex stuff treating 
such values as flags or variables etc.


IMO the next bottleneck related this matter, are tools for controlling 
field values. One such discussion is CheckboxWidget - generalize to also 
toggle individual items #5613 
<https://github.com/Jermolene/TiddlyWiki5/issues/5613>

<:-)

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7ca9b287-83e4-4213-83e0-cb0591f864f9n%40googlegroups.com.

Reply via email to