Mat,

Believe it or not, I do know where you are coming from and I support a well 
designed feature to achieve what you want. But I do urge caution. At 
present a filter tends to generate a one many or no specific list of items. 
The point I believe I am making is however there are already quite elegant 
methods to achieve what you ask.

   - In the case of your example using the get, is asking for the content 
   of that field on every tiddler to become the list, you are getting what you 
   ask for,
   - and this feature is often needed.
   - But no, in fact you are asking for the tiddler name and the content of 
   a field.

The way I would answer this would be a number of ways, but with two 
possible examples below
<$list filter="[tag[Languages]]">

   Title=<<currentTiddler>><br>{{!!text}}<br>
</$list>

<hr>

<$list filter="[tag[Languages]]">

   Title=<<currentTiddler>><br><$text text={{{ [all[current]get[text]] }}}/>
<br>
</$list>

But because I feel for what you are asking, I have being working on a macro 
that would look like this

<<nested-filters "[tag[Languages]]" "[<f1>get[text]]" """Title: <<f1>> 
vlue: <<f2>>""">>
:Or
<<nested-filters "[tag[Languages]]" "[<f1>get[text]]" """
Title: <<f1>> vlue: <<f2>>
""">>
:Or with a macrocall

Where the last item is what to display, or could be a listtemplate
This would generate behind the scenes as many nested lists as filters 
provided.


   - But other tricks are available depending on the content of the field 
   you would like to extract.


*For One way to improve filters and perhaps resolve this gap would be 
to consider*
<$list filter="[!is[system]has[caption]] 
+[addprefix{!!caption}addprefix[:]]">

</$list>
The above (if it worked) would output a compound value delimited by ":"


Lets say we could use the & or pipe | instead of the +
Where the second run operates on each title as the currenttiddler
filter="[!is[system]has[caption]] 
&[get[title]addprefix{!!caption}addprefix[:]]"
Resulting in
caption1:tiddlername1
caption2:tiddlername2
Or
\define break() :<br>
filter="[tag[Languages]] &[addsuffix[<break>]get[text]]"

Resulting in
tiddlername1:
tiddler text1
tiddlername2
tidler text2


Again, where the second run is applied to each title as if it were the 
currentTiddler.
....
ie {!!caption} refers to the caption of each of the resulting tiddlers.

Splitting such delimited titles is trivial.

Food for thought?

Regards
Tony


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/48d99399-a173-4f4c-a9cc-c6eb9c12d995%40googlegroups.com.

Reply via email to