On Monday, May 23, 2022 at 6:04:21 PM UTC-7 David wrote:
```
<$list filter="[all[current]indexes[]contains<!!searchText>sort[]]" 
variable=item>
```

`contains<!!searchText>>` is incorrect for two reasons:

* The field reference `!!searchText` should enclosed with curly braces: 
`{!!searchText}`, not angle brackets.  Remember: the delimiters around 
filter operands correspond to the type of operand: square brackets are for 
literal text, angle brackets are for variable names, curly braces are for 
tiddler field references.
* The `contains` operator is used to search within items of a list field.  
To search the items in the current filter input, use the `search:title` 
operator.  Note that, although the input items are actually indexes, for 
the purposes of the `search` operator, they are handled as a list of 
"titles".
* Also note that, while `all[current]` is valid usage here, you could use 
`<currentTiddler>` instead.  There's no semantic difference, but 
`<currentTiddler>` is *slightly* more efficient than `all[current]`, since 
it doesn't have to parse the "current" operand to retrieve the tiddler 
title.

Thus, your filter should be:
```
<$list 
filter="[<currentTiddler>indexes[]search:title:literal{!!searchText}sort[]]" 
variable=item>
```

enjoy,
-e

P.S. I recommend visiting https://talk.tiddlywiki.org/ for a more active 
group in which to ask questions.

-- 
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/103a73be-5fb2-45fa-a0a6-6faa543ee4e8n%40googlegroups.com.

Reply via email to