Hi Mat > Yes, I hope to be able to distinguish between items that are enclosed in > brackets and items that are not. > > My latest endeavor where I need this is for the TitlePicker (this issue > <https://groups.google.com/d/msg/tiddlywiki/k85NeNjush8/3n9wG7rXAQAJ>) which > looks at what is typed in the editor (as it is typed) and needs to identify > strings that are "title fragments", i.e prefixed with "[[" that are not > (eventually) followed by "]]" or other non-title indicators like <$ etc . I'm > fiddling with various attempts at regexps for this but it would be trivial if > I could just sort out the links (i.e the [[...]] ) to begin with. It is > particularly tricky to work with double brackets in filters because of how > filters treat them. > > Given your reply that > > That’s not quite how filters work: double square brackets within filters are > used to delimit titles containing spaces. The brackets don’t remain part of > the name, and therefore aren’t visible to the rendering template. > > ...I don't see how the input "aa" can be distinguished from "[[bb]]" then, or? > > Again, thank you for your replies.
That’s right, the filter has no memory as to the type of bracketing used to define an item in the list. But I still don’t quite understand how this relates to your problem. Are you attempting to treat the text of a tiddler as a filter string and then expecting to be able to process the individual words. The problem with that is likely to be the duplicate removal — just try typing “the cat sat on the mat” in the filter tab of advanced search. Best wishes Jeremy > > <:-) > > -- > 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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/6aac0413-b6bf-4c81-9e7a-cf4a6d3efd1a%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/6aac0413-b6bf-4c81-9e7a-cf4a6d3efd1a%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/FB3C5DBC-7014-4A31-AC17-452FE9117CD2%40gmail.com.

