A profitable path to follow with tiddlywiki is to clone and edit tiddlers that come with tiddlywiki. Just be thorough and you can clone the advanced search and start build your own custom search.
Regards
Tony
caption: {{$:/language/Search/System/Caption}}
created: 20190913135403441
food-kaas: 100
food-pindakaas: 25
modified: 20190913144243601
myfield: pindakaas kaas
revision: 4-baf8eae19b4c947a64cf11be781b4802
tags: experiment
title: Food Widget
type: text/vnd.tiddlywiki
\define add-link-actions()
<$action-listops $field="myfield" $subfilter="[title[Food Widget/linkcatcher]get[text]]"/>
\end
\define food-item() food-$(an-item)$
The trick is that I'm manipulating a field.
For more info on how I do it:
https://tiddlywiki.com/static/ActionListopsWidget.html
<div class="tc-search">
<$edit-text tiddler="Food Widget/search" type="search" tag="input"/>
</div>
<$reveal state="Food Widget/search" type="nomatch" text="">
<div class="tc-search-results">
<$linkcatcher to="Food Widget/linkcatcher" actions=<<add-link-actions>>>
<$list filter="[title[Food Widget Storage]get[text]splitregexp[\n]prefix{Food Widget/search}]" template="$:/core/ui/ListItemTemplate" >
</$list>
</$linkcatcher>
</div>
</$reveal>
''You ate the following''
<$list filter="[list[!!myfield]]" variable="an-item">
<<an-item>>
Gram
<$select field=<<food-item>> tooltip='amount of gram'>
<option>10</option>
<option>25</option>
<option>50</option>
<option>75</option>
<option>100</option>
<option>150</option>
<option>200</option>
</$select>
<$button>
<$action-listops $field="myfield" $subfilter="-[<an-item>]" />
<$action-deletefield $field=<<food-item>> />
Delete
</$button>
<br /> <br />
</$list>
created: 20190913135622703
modified: 20190913143840846
tags: experiment
title: Food Widget Storage
type: text/plain
kaas
pindakaas
chocolade pasta
hagelslag
brood
boter