Awesome, this is exactly what I want. Thanks Jed. I think this should be in the core of TiddlyWiki. I hope they upstream it.
I tried to install your plugin but I can't get it working properly. I drag and from your wiki I dragged and dropped the $:/plugins/inmysocks/extrafilters to my wiki. And said import. The tiddler then said I had imported these 2 tiddlers, Untilted and $:/plugins/inmysocks/extrafilters. I looked at Untitled and it seemed empty, I thought it must have been from something I did when trying to select text in one of my tiddlers but accidentally dragged and dropped, so I deleted my Untilted tiddler. I checked Config > Plugins and I could see your Extra Filters plugin was enabled. I tried to use it as documented and it wouldn't work. If I had a filter [tag[foobar]lessthan:length[9]] it would only list foobars with length 9, not those less than 9. I noticed that if I purposely spelt wrong lessthan it would still show foobars with length 9. Something is messed up. I copied your Examples and Extra Filter Operator tiddlers plus those tagged with tag. Their example output in my wiki doesn't match those in your wiki. I tried disablling and re-enabling the plugin. I tried deleting the plugin and importing it again. This time my Imported tiddler only showed a link to extrafilters. It's still not working. I noticed in your wiki your $:/plugins/inmysocks/extrafilters lists the shadow tiddlers it has, but mine does not. The minified javascript of the filters is in there, and I saw that part is the same as yours. So the shadow tiddlers seem redundant. should mine list shadow tiddlers for each filter? Is this why the filters aren't working for me? What am I doing wrong? How can I troubleshoot what's wrong? Thanks On Tuesday, 10 October 2017 00:44:51 UTC+11, Jed Carty wrote: > > In the core there are very few filters the work on numeric input like > that. The allbefore operator finds an item in the list and returns the list > up until that point, so if you have a list of 'one bob joe three 99 eddie', > allbefore[joe] would give 'one bob' > > So in your example it would only return something if the a tiddler has an > exact match for 9 in its length field, then it would return any tiddlers in > the list before that item. If there are no tiddlers with 9 than it returns > am empty list. > > I made some numeric comparison filters, you can see information about them > here (http://inmysocks.tiddlyspot.com/#Extra%20Filter%20Operators), they > may be useful for you. I haven't had any trouble using them but to my > knowledge I am the only one who has tested them. > -- 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/804e51e8-693d-4b80-9123-c9427dae7b78%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

