On Thursday, December 12, 2019 at 12:34:23 AM UTC-8, Mohammad wrote: > > On Thursday, December 12, 2019 at 11:04:09 AM UTC+3:30, Eric Shulman wrote: >> >> 3) If you don't provide a tag value, it won't match anything. To avoid >> this, use the tag:strict[...] filter syntax >> > > I do not understand this quite well! I have seen this before in > https://tiddlywiki.com/prerelease/#tag%20Operator > what really strict does mean here? >
https://tiddlywiki.com/#tag%20Operator if T (the tag value) is missing then the output of tag is empty, and the output of !tag is a copy of the input. if T (the tag value) is missing and S (the suffix) is set to "strict", then the output of both tag and !tag is a copy of the input thus, tag[] results in an empty list, while tag:strict[] is a "pass-thru" of whatever came before it in the filter > 4) You haven't provided any control over what kinds of tiddlers to >> search. To add this, put an all[...] filter at the beginning >> > Isn't it it assume all[tiddlers] ? > yes... that is correct... but I wanted to give more selective control... so you can say all[tiddlers+shadows], all[shadows], all[orphans], etc. Here's my solution, which I have uploaded to >> http://tiddlytools.com/filtergenerators.html >> > > This is great! A one place for filter solution and for later use! a > codepen like for Tiddlywiki (live experimenting) > I will email David to add to tiddlywiki toolmap! > thanks. I've collected a few of my "filter generator" solutions in that file, and now that I've got TiddlyTools.com hosting working again, I'm keeping an online copy for sharing. *Comments:* > > - I understand $var widget has filter input parameter, not documented > and I always use set for this purpose > > Technically, $vars doen't have it's own filter handling... it's just that it can use the {{{ [...] }}} syntax for parameters, just like any other widget. One important difference between the <$set name="foo" filter="[...]"> and <$vars foo={{{ [...] }}}> syntax: the results of a $set filter can be a list of values, while the {{{ [...] }}} syntax only returns the *first* value in the list > > - I should be able to use regexp as search flag and this will give > higher flexibility > > yes. The flag values are defined here: https://tiddlywiki.com/#search%20Operator note: you can use * (asterisk) for the "field" value, so it searches ALL the fields in a tiddler, instead of just the ones that are explicitly mentioned. e.g. search:*[foo] will find "foo" in ANY field also, if you want to search all fields EXCEPT for certain ones, you add a leading "-" (minus sign) to the field value e.g. search:-title[foo] will find "foo" in ANY field EXCEPT the tiddler title > Thanks again! Every answer like this is small lesson in wikitext scripting. > You're welcome! As I say in my usual closing: enjoy, -e -- 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/0fb50299-8341-4a8c-83e9-12fa7feacfd2%40googlegroups.com.

