Birthe C was right, I had not reloaded the browser - I saved the my wiki, 
the download has a " {x}" appended, I copied the latest saved one over the 
original and re-opened it. The filter is now working as expected. This is 
awesome. I'm very happy to be able to filter numerically. I think this 
should be in the core TW5.

I already had a "has[length]" in my filter. If it take it out it lists all 
those with no length field and by those that have one less than X.

I can sort by length (nlength). I'd like to sort tied lengths by name but I 
haven't worked out how to do that yet. I tried sort[title]nsort[length] but 
I can see that doesn't work as I desired.

I also noticed that if I have tiddlers with lengths that are purely 
numeric, e.g. 11' (11 foot), then those tiddlers won't show up. I can take 
a look at the code and see how it was done. I can take a look at your code 
and learn how it works and then tweak it or add some new functions. I'd 
like to be able to chain operations so that I can first convert the length 
field stripping all non-numberic characters, then cast it to a number, and 
then sort on that calculated value. That might be not be possibly though.

Thanks for all the help everyone, especially Jed for writing the plugin and 
point it out to me. I can now do something I really wanted to do and was 
struggling with.


On Friday, 13 October 2017 03:58:44 UTC+11, Mark S. wrote:
>
> But your examples do work when brought into a recent TW5 file. Whether the 
> plugin works  with Berne's data ... we would need to see it.
>
> On Thursday, October 12, 2017 at 9:05:42 AM UTC-7, Jed Carty wrote:
>>
>> It looks like if the input tiddlers don't have the field in question it 
>> will return them all. if you add has[length] than that may help.
>>
>> I am not sure that these filters actually work well, they were an 
>> experiment that I made a while ago so I don't remember much about the code.
>>
>
>
>

-- 
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/88766652-0c8d-43ec-9439-c5fa4d581182%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to