[tw5] Re: Case insensitive fuzzy search of title in filter?
Thanks all. I'd forgotten about regex, which solved it: \define SearchTerm(term) (?i)($term$) \end Set Parent Item: <$edit-text tiddler="$:/_opTaskStore" field="itemsearch" tag="input" default ="" class='tc-edit-texteditor' placeholder='Test text'/> <$button set="$:/state/ItemSearch" setTo={{$: /_opTaskStore!!itemsearch}}>Search test: {{$:/state/ItemSearch}} <$wikify name="SearchTermWikid" text=<> > wikid: <> <$select field="SearchTermDD" class="tw-edit-texteditor myTextEdit"> <$list filter="[regexp:]" emptyMessage="No Results" > >><$view field='title'/> The "(?i)" in the regex makes it case insensitive. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7b33e404-d9a9-4510-b2f7-72212fd7fd01%40googlegroups.com.
[tw5] Re: Case insensitive fuzzy search of title in filter?
Thats true ste see - https://groups.google.com/forum/#!searchin/tiddlywiki/fuzzy$20search$20plugin|sort:date/tiddlywiki/ZvvLTxQz3Ag/xcDKMVr9CgAJ - https://groups.google.com/forum/#!searchin/tiddlywiki/fuzzy$20search$20plugin|sort:date/tiddlywiki/Co2dWbbCHTc/jaAbQKnNAgAJ are some of those --Mohammad On Saturday, August 3, 2019 at 7:29:36 PM UTC+4:30, Ste Wilson wrote: > > I'm sure someone tackled this a while ago... -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/82cbc97b-9b8c-428e-ba05-ad270fc5424f%40googlegroups.com.
[tw5] Re: Case insensitive fuzzy search of title in filter?
I'm sure someone tackled this a while ago... -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/708e19f7-b7cd-42f8-834c-fe6b12d1a7cd%40googlegroups.com.
[tw5] Re: Case insensitive fuzzy search of title in filter?
Nice stuff! I also recommend to have a look at https://dynalist.io/d/zUP-nIWu2FFoXH-oM7L7d9DM#z=qvnb1tyGX-Zfd0n7kl_Moj-d -Mohammad On Saturday, August 3, 2019 at 6:36:33 PM UTC+4:30, MagoArcade wrote: > > Hi - I'm trying to write a fuzzy search routine. At the moment I only know > how to search on the Prefix, but this only returns results on exact prefix > matches of precise case. What I'm aiming for is something like below. > > Let's say I have 3 tiddlers: > > "The cat sat on the mat" > "Cat littler needed" > "Fight like fish and dog" > > If I type "cat" into the search box, it should return: > "The cat sat on the mat" > "Cat littler needed" > > Present code (abridged + working code with debug}: > > \define SearchTerm() > [prefix[{{$:/state/ItemSearch}}]] > \end > > > > > > Set Parent Item: > > > <$edit-text tiddler="$:/_opTaskStore" field="itemsearch" tag="input" > default="" class='tc-edit-texteditor' placeholder='Test text'/> > > > <$button set="$:/state/ItemSearch" setTo={{$: > /_opTaskStore!!itemsearch}}>Search > > > test: {{$:/state/ItemSearch}} > > > macrod: <> > > > <$wikify name="SearchTermWikid" text=<> > > > > wikid: <> > > > <$select field="SearchTermDD" class="tw-edit-texteditor myTextEdit"> > <$list filter=<> > > >><$view field='title'/> > > > > > > > > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2b1739b6-92d8-43ec-83d8-4343347af665%40googlegroups.com.