Filter Q: Replace two nested listwidgets with one, via more powerful filter

I’m wondering how to merge the following two listwidgets into one by means of a single filter, and thus avoid the duplicate output titles.

<$list filter='[all[shadows+tiddlers]prefix[$:/config]limit[2]]'>
__<<currentTiddler>>__
<$list filter='[all[shadows+tiddlers]search:text<currentTiddler>]'>

</$list>
</$list>

Output with undesired duplicates:

image

Note: The underlined “headings” seen above are only for demo purposes here and are not needed in the desired outcome:

Help appreciated :slight_smile:

1 Like

[all[shadows+tiddlers]prefix[$:/config]limit[2]] :map:flat[all[shadows+tiddlers]search:text<currentTiddler>] :and[unique[]]

There may be a simpler solution depending on what the actual use case is.

2 Likes

Oh-my! No wonder I couldn’t figure it out. Thank you @saqimtiaz !

There may be a simpler solution depending on what the actual use case is.

The background is this idea, i.e I want to list all tiddlers that are part of the Controlpanel UI (a.k.a “settings”) so that end-users can manipulate them / the controlpanel UI more easily. Mario points to the prefix[$:/config] tiddlers and I figure that just maybe the the desired “settings tiddlers list” is the same as the tiddlers where those config tiddlers are mentioned. (BTW, if you have any immediate thoughts on this, they’d be welcome :slight_smile: )