> It's possible. It's also possible to ignore case:
>
Great, thank you Stephan. Would anyone like to try their hand at creating a
pull request for this? One additional requirement is to use the translation
mechanism to make the legend "Searching in field:" be translatable.
Best wishes
Jeremy.
>
> \define searchInField(field, for, ignore)
>
> <$list filter="[!is[shadow]!is[system]regexp:$field$[$for$$ignore$]]">
>
> <$link><$view field="title"/></$link>
>
> </$list>
>
> \end
>
>
> <$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input"/>
> <$select field="fieldname" tiddler="$:/temp/advancedsearch">
> <option value="Any">Any</option>
> <$list filter="[!is[shadow]!is[system]fields[]sort[]]" variable="fieldname
> ">
> <option value=<<fieldname>>><<fieldname>></option>
> </$list>
> </$select> <$checkbox field="ignore" tiddler="$:/temp/advancedsearch"
> checked="(?i)"> ignore case</$checkbox>
>
> <$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
> <$reveal state="$:/temp/advancedsearch!!fieldname" type="match" text="Any
> ">
> <$list filter="[!is[shadow]!is[system]fields[]]" variable="fieldname">
>
>
> Searching in field: <<fieldname>>
>
> <$macrocall $name="searchInField" field=<<fieldname>>
> for={{$:/temp/advancedsearch}} ignore={{$:/temp/advancedsearch!!ignore}}/>
>
> </$list>
> </$reveal>
> <$reveal state="$:/temp/advancedsearch!!fieldname" type="nomatch" text="
> Any">
>
> Searching in field: {{$:/temp/advancedsearch!!fieldname}}
>
> <$macrocall $name="searchInField"
> field={{$:/temp/advancedsearch!!fieldname}} for={{$:/temp/advancedsearch}}
> ignore={{$:/temp/advancedsearch!!ignore}}/>
>
> </$reveal>
>
> </$reveal>
>
>
>
--
Jeremy Ruston
mailto:[email protected]
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.