I am finding that the more entries I make the less efficient the side bar search is, if there is another option I am open to suggestions.
Search <$select tiddler="$:/temp/searchfilter" default="Choose" tag="input">
<option value="Choose">-Choose one-</option>
<option value="[has[intelligence]search:intelligence{$:/temp/search}]">Intelligence</option>
<option value="[has[climate_terrain]search:climate_terrain{$:/temp/search}]">Climate/Terrain</option>
<option value="[has[hd]search:hd{$:/temp/search}]">HD</option>
</$select>
<$edit-text tiddler="$:/temp/search" tag="input" />
<$macrocall $name="list-links" filter={{$:/temp/searchfilter}} />
@@.fourcolumns
<div class="tc-table-of-contents">
<<toc-selective-expandable 'INDEX' sort[title]>>
@@
For the 2nd part, wrap the lookup macro with a list that uses a minlength operator:
when I try to search a single character it returns every entry with that particular character in it even if it is part of a series or another number. I want to search for the number 2 and I get returns that include 2, 12, 20, 22. is there a way to fix this?
<option value="[has[intelligence]search:intelligence:literal{$:/temp/search}]">Intelligence</option><option value="[has[climate_terrain]search:climate_terrain:literal{$:/temp/search}]">Climate/Terrain</option>
<option value="[has[hd]search:hd:literal{$:/temp/search}]">HD</option>
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.
Try modifying the search filter so it looks for the literal string:That is, changesearch:hdtosearch:hd:literal
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>
I'm thinking "literal" might be broken, or maybe we're interpreting it too .... wait for it ... literally.
I'm thinking "literal" might be broken, or maybe we're interpreting it too .... wait for it ... literally.
A Gloom wrote: