I think I didn't explain myself well enough. My problem is not with how it
sorts or with any weirdness of the field I'm sorting on but just that it
gives no result with any field or variable used as the search field. The
search only gives me results if I hard code a number in the search.
So this give me no result:
<$list
filter="[lessthan:birth[{{!!year}}]greaterthan:death[{{!!year}}]tag[People]]">
But this gives me the expected results:
<$list filter="[lessthan:birth[1950]greaterthan:death[1950]tag[People]]">
I have a field named "year" with just a 4 digit number
On Monday, November 27, 2017 at 12:51:06 AM UTC-5, Berne Campbell wrote:
>
> Hi Gabriel,
>
> I haven't dug into the source code, but I had the same issue, if I had a
> field with "11'" (note the single quote) - as in "11 feet" then it wouldn't
> work. I ended up modifying all my tiddlers to have purely numeric data in
> the fields rather than some alphanumeric. I suspect that a simple
> modification to the JavaScript could solve that problem but I haven't
> looked into it.
>
> Cheers,
> Berne
>
> On Fri, Nov 24, 2017 at 12:46 AM, Gabriel Perlmutter <[email protected]
> <javascript:>> wrote:
>
>> I like this plugin, but it doesn't seem to work with any fields or
>> variables as the comparison number or alphanumeric. Am I missing something
>> or do you have to hard code the search number every time?
>>
>> On Monday, October 9, 2017 at 9:44:51 AM UTC-4, 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 a topic in the
>> Google Groups "TiddlyWiki" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/tiddlywiki/GQl_L-DsEzQ/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> 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/31835762-3cc1-46eb-b24c-556a79bd7822%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
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/9966161d-35d8-416a-8c83-8b3e9d4b9979%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.