``` <$list filter="[<currentTiddler>indexes[]search:title:literal[Vegas]sort[]]" variable=item> ```
Thanks for replying. I'll note that other forum for future questions. But it seems your code snippet is not working with the variable/field in there. It works fine when I put some static text there, though, as seen in my line above. On Monday, May 23, 2022 at 9:34:47 PM UTC-4 Eric Shulman wrote: > 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/b6b88911-c2d3-4a18-baff-9b25897d63a7n%40googlegroups.com.