Mark, thank you very much!! It works brilliantly.

I wasn't aware of this syntax. It's so simple and seems powerful. There's 
always something new to learn thanks to this amazing community.

Thanks again!

Best regards,
Hubert



On Thursday, 21 June 2018 16:00:13 UTC+1, Mark S. wrote:
>
> This version seems to work:
>
> <$list filter="""[search:title{$:/search!!note}]""">
> <<currentTiddler>>
> <br>
> </$list>
>
> -- Mark
>
> On Thursday, June 21, 2018 at 4:45:34 AM UTC-7, Hubert wrote:
>>
>> Hello,
>>
>> I have an edit-text box that, when typed into, populates the note field 
>> of a $:/search tiddler.
>>
>> That value is then part of a list filter. It works great except when I 
>> type double quotes (") in the edit-text box -- that obviously breaks the 
>> list filter syntax by introducing the extra quote(s).
>>
>> Is there a way to escape double quotes for search or ignore (trim) them 
>> at some stage? I've already tried experimenting with pragmas but this did 
>> not have any effect (perhaps the syntax is wrong):
>>
>> \rules except &quot;
>> \rules except &#34;
>>
>> Here's my code (I've skipped the edit-text part because that's 
>> irrelevant):
>>
>> <$set name=searchterm value={{$:/search!!note}}>
>>
>> <$list filter="[tag[item]search:title[$(searchterm)$]]">
>> <<currentTiddler>>
>> <br>
>> </$list>
>>
>> </$set>
>>
>> As an example, this is what the list filter 'sees' when the string "test" 
>> is typed into the edit-text box -- a case of nested double quotes is a 
>> recipe for disaster ;)
>>
>> <$list filter="[tag[item]search:title["test"]]">
>>
>> Thank you in advance for your suggestions!
>>
>> Best regards,
>> Hubert
>>
>>
>>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a1f980d5-ca1e-4430-a489-8ffeb6f7178c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to