TonyM That's awesome!
And it's the answer to my (sub-) question in this thread here: How to use a variable in Advanced Search <https://groups.google.com/d/msg/tiddlywiki/zssmbBGM99w/Ep8xqCEbBwAJ> Do you think you could extend this approach in the following way? - in a tiddler (e.g. titled: "automation task") with - your Filter-Var & Filter code, optically separated in its own frame - this frame/section contains in addition a button labled"execute/run" - and you click the button - to open the Advanced Search tiddler - to jump to the tab/register "Filter" - to insert `[fields[]!subfilter{$:/temp/filtervar}]` - and as result the Advanced Search lists the matches Is something like this possible with WikiText? Regards Cd.K On Monday, September 23, 2019 at 6:48:18 AM UTC+2, TonyM wrote: > > Cd.K > > Thanks for sharing back. I expect the scheduled solution is the best > however; > > On returning I had a thought. Place this in a tiddler on tiddlywiki.com > > Filter-Var: <$edit-text tiddler="$:/temp/filtervar" tag=input/><br> > Filter: <$edit-text tiddler="$:/temp/filter" tag=input/> can also use > `<filter-var>`<br> > <$set name=filter-var value={{$:/temp/filtervar}}> > <$set name=filter value={{$:/temp/filter}}> > <$list filter={{$:/temp/filter}}> > > </$list> > </$set> > </$set> > > Then enter in filter-var > 201909(0[1-9|1[0-5]) > > And in filter reference filter-var > [regexp:created<filter-var>] > > Basically this make possible the introduction of a variable to the filter > used in the search, as one has to do when using regex with square brackets > in wikt text. > > This could also be used to test the use of subfilters > Filter-var > title text modified modifier created creator tags type list caption > > Filter > [fields[]!subfilter<filter-var>] > > So I wonder if there was a way to allow the setting of a variable in the > advanced search filter tab would be useful. It would only work if included > in the filter. > Or alternatively use {$:/temp/filtervar} in the advanced search filter > > [fields[]!subfilter{$:/temp/filtervar}] > > Or in the original example > > Enter in filter-var > 201909(0[1-9|1[0-5]) > > And in advanced search filter reference filter-var tiddler > [regexp:created{$:/temp/filtervar}] > > And there is yet another option: > in a tiddler tagged $:/tags/Macro > Place > \define varname() 201909(0[1-9|1[0-5]) > > and use <varname> in your advanced filter > > [regexp:created<varname>] > > I have tested all of the above and they work > > Regards > Tony > > > -- 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/b729887a-add4-42ce-b33e-6b2ff7369f4a%40googlegroups.com.

