Hi David

The implementation of the rest filter (and most of the other “list-ops” 
filters) uses the default parameter value of one if the provided parameter 
value is zero.

The code was written that way on purpose, but I think it’s probably a bug. You 
may be able to work around it for the moment by having a dummy first entry in 
the list that you can’t scroll to?

Best wishes

Jeremy

> On 23 Mar 2018, at 08:57, David Allen <[email protected]> wrote:
> 
> I have about five hundred tiddlers that all display a decently-sized image.  
> To reduce the impact on my machine, I've implemented a slider system that 
> keeps track of a slider index using two simple buttons, then displays a list 
> of five items starting at the slider index.
> 
> Filter code is as follows: 
> "[tag[alien]!prefix[Template]sort[]rest{!!scroll_index}limit[5]]"
> 
> When the scroll_index field is supposed to start at zero and increment or 
> decrement by five according to the button I press.
> 
> rest[0] and rest[1] have the same output.  Is this a bug or by design?
> 
> -- 
> 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 post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/72ba456a-c337-4f45-86c4-81671bf9ae3a%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/72ba456a-c337-4f45-86c4-81671bf9ae3a%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <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/49392FF1-2756-4006-A903-07B0E19D3CE9%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to