Because "literal" doesn't work, a lot more code is needed.
Make a backup of your work. Here's my version, which I tested with some
simple data. I may have lost the formatting you had with @@, so you may
need to put that back in. Basically what the following does is use a whole
separate routine for the special case where you are doing an HD search.
Search by <$select tiddler="$:/temp/searchfilter" default="Choose" tag=
"input">
<option value="Choose">-Choose one-</option>
<option value="[has[intelligence]search:intelligence{$:/temp/mysearch}]">
Intelligence</option>
<option value="[has[climate_terrain]search:climate_terrain{$:/temp/mysearch
}]">Climate/Terrain</option>
<option value="HD%%HD">HD</option>
</$select>
<$edit-text tiddler="$:/temp/mysearch" tag="input" /><br/>
<$vars hdf1="[has[hd]regexp:hd[\b" hdf2="\b]]" >
<$reveal text={{$:/temp/searchfilter}} default="HD%%HD" type="match">
<$wikify text={{{ [<hdf1>addsuffix{$:/temp/mysearch}addsuffix<hdf2>] }}}
name="hdfilter">
<$macrocall $name="list-links" filter=<<hdfilter>> />
</$wikify>
</$reveal>
<$reveal text={{$:/temp/searchfilter}} default="HD%%HD" type="nomatch">
<$macrocall $name="list-links" filter={{$:/temp/searchfilter}} />
</$reveal>
</$vars>
On Thursday, December 12, 2019 at 1:34:10 PM UTC-8, PWL wrote:
>
> Okay fixed that. Unfortunately it didn't work. I tried surrounding it
> with spaces too. Still getting the same results, search one and get 1,10,
> 11, 12 etc.
>
> On Wednesday, 11 December 2019 20:47:15 UTC-4, Eric Shulman wrote:
>>
>> On Wednesday, December 11, 2019 at 4:20:22 PM UTC-8, PWL wrote:
>>>
>>> I tried that code... Main interest is for the HD field. Didn't work.
>>> Don't know what I did wrong. I copied the exact line into my code but I go
>>> nothing. It stopped giving any results at all... blank page.
>>>
>>
>> The example code I posted (which you copied "exactly") was still using
>> "$:/temp/search"... change it to "$:/temp/mysearch" and it should work
>> again.
>>
>> -e
>>
>
--
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/811d6096-ee75-4951-b420-974ecf2d76af%40googlegroups.com.