[tw5] Re: Alternative to listed[] operator that checks if a field value matches input

2019-12-22 Thread Eric Shulman
On Sunday, December 22, 2019 at 1:12:15 PM UTC-8, David Allen wrote: > > The problem with the macro solution you mentioned is I needed a more > general, flexible solution to use as a list filter. > Without trying to comprehend your code (which is quite complex!)... I'll just try to address the

[tw5] Re: Alternative to listed[] operator that checks if a field value matches input

2019-12-22 Thread 'Mark S.' via TiddlyWiki
You can simplify your code by wrapping your code in a macro following Eric's example. Then invoke the macro. This is the most compact way of doing things using the core. The alternative without using a macro is to use an extra list loop, like: <$vars fieldname="craft_class"> <$tiddler

[tw5] Re: Alternative to listed[] operator that checks if a field value matches input

2019-12-22 Thread David Allen
<$list variable="filter_field" filter="[enlist]"> <$wikify name="search_string" text="[<>[<>]!prefix[View]!prefix[Template]first[]]"> <$wikify name="display_string" text="[<>[<>]!prefix[View]!prefix[Template]]"> <$list variable="search_confirm" filter=<> > <$set name="display_tag"

[tw5] Re: Alternative to listed[] operator that checks if a field value matches input

2019-12-22 Thread Eric Shulman
> > What I want is some way to find all tiddlers that contain a field where > the field's entire value matches "Constitution Class" (or whatever other > string I throw at it), rather than enlisting every fields' contents to find > the value. > Based on the above statement... and using the