Saq,
Well then either I don't understand what you are saying and/or you don't
understand what I am saying (or both).
as far as I can see I can replicate you filter with [tag[Widgets]sort[]]
+[get[caption]else[{!!title}]] while neither this or your filter provides
links to the original tiddler.
Your question was how to get a similar result to your filter that you give
an example for?, but you do not specifically state what result you are
looking for. As a Result I speculated and came to think you want an
intermediate result while retaining the currentTiddler. I then go on to
talk about how this may be achieved in the future, in a simplified form of
your filter which while an impressive use of the new filters it is hardly
readable for most.
Perhaps I have not answered your question, but I did my best and put in
some though and effort. Always with a view to improving tiddlywiki.
Regards
Tones
On Wednesday, 16 June 2021 at 17:03:14 UTC+10 Saq Imtiaz wrote:
> @pmario thank you for taking a look. Oddly enough, this came up now as I
> was trying to see if I could replace a custom filter with the new filter
> capabilities in the core.
>
> There are actually multiple ways that we could address this with a new
> filter but I haven't had the chance to think through them and figure out
> which would have the most universal utility. I'll post something on Github
> when I get the chance.
>
> Thank you.
>
>
> On Wednesday, June 16, 2021 at 8:39:24 AM UTC+2 PMario wrote:
>
>> Hi Saq,
>> That's a tricky filter. You use the capability of the "reduce" filter,
>> that it has access to the "currentTiddler" inside the filter run.
>>
>> If "elseXX" would have the same info it would be as simple as this.
>>
>> [tag[Widgets]] +[get[caption]elseXX{!!title}]
>>
>> I think, the usecase is "generic" enough, to discuss a new elseX
>> operator, that has this info.
>>
>> Just a thought
>> -mario
>>
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e8aeaa32-cd59-4e10-a83c-cfcc1b57687bn%40googlegroups.com.