Give this a try: TiddlyTools/Search/FilterActions
It adds a “factory” button (
) to the $:/AdvancedSearch > Filter tab. The TiddlyTools/Search/FilterActions tiddler is tagged with $:/tags/AdvancedSearch/FilterButton, and contains:
<$set name=acts filter="[tag[$:/tags/FilterActions]]">
<$list filter="[<acts>!match[]then{$:/temp/advancedsearch}!match[]]" variable=filt>
<$set name=tids filter=<<filt>>>
<$let popid=<<qualify "$:/state/popup/filteractions">>>
@@font-size:125%;<$button popup=<<popid>> class=tc-btn-invisible tooltip={{!!caption}}>🏭</$button>@@
<$reveal state=<<popid>> type=popup class=tc-block-dropdown style="padding:0.5em;" position=belowleft>
''{{!!caption}}''
<$list filter="[enlist<acts>]">
<$button class="tc-button tt-button" style="display:block;width:100%;margin:0.25em 0;" actions={{!!text}}>
<$view field=caption><$view field=title/></$view>
</$button>
</$list>
This button shows a popup with a list of tiddlers tagged with $:/tags/FilterActions, each of which contains wikitext and action widgets to perform on the list of tiddlers that were found using $:/AdvancedSearch > Filter.
Within each FilterActions tiddler, you can refer to <<filt>> to get the search filter syntax, and <<tids>> to get the list of matching tiddlers.
For example, the following will display a message showing the current filter (filt), the number of matching tiddlers found ([enlist<tids>count[]]), and the list of tiddler titles ([enlist<tids>]):
<$let lf={{{ [charcode[10]] }}}>
<$action-confirm $message={{{ [<filt>] [enlist<tids>count[]addsuffix[ matching tiddlers]] [enlist<tids>] +[join<lf>] }}}/>
and this simple one-line wikiscript will “replace StoryRiver open Tiddlers with all Filter Search Results”:
<$action-setfield $tiddler="$:/StoryList" list=<<tids>>/>
enjoy,
-e