Ciao Tony M.
Excellent post opening up the variety of approaches!
I'll comment a bit later to try illustrate one of them in a bit more detail.
Best wishes
TT
On Monday, 23 September 2019 06:48:18 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/6d59fe93-2395-4a42-b53a-9de1491c6292%40googlegroups.com.