Mohammad, I have long wanted this mechaisium my self. There are ways to emulate it, but a direct index variable is ideal.
I wonder if the feature can be supported by the existing caching since this will have many possible uses and does become important when lists get longer. A zero OR one based index would also be helpful to avoid adding one every time in many cases. There are a whole class of situations when knowing the position is useful, the set index parameter can be used to access the nth item in a list, so you could use one list to map to another eg days of the week, 1, mon, monday etc... Also when generating a list then being able to enter a range of start and end values etc... Regards Tones On Sunday, 25 April 2021 at 01:22:40 UTC+10 Mohammad wrote: > You may now, the $list widget, is the most common widget you use in > Tiddlywiki! It is everywhere like a nice dog! > > The $list widget in 5.1.24 has got a new attribute index! in which the > numeric index of each listed tiddler is stored It can produce very nice > results like below > > > <$list filter="[tag[About]sort[title]]" index="index"> > <div> > <<index>>: ''<$text text=<<currentTiddler>>/>'' (is first: <<index-first>>, > is last: <<index-last>>) > </div> > </$list> > > > > Displays as: > > 0: Acknowledgements (is first: yes, is last: no) > 1: Contributors (is first: no, is last: no) > 2: History of TiddlyWiki (is first: no, is last: no) > 3: License (is first: no, is last: no) > 4: Releases (is first: no, is last: no) > 5: RoadMap (is first: no, is last: yes) > > Ah this is lovely! > > > > > Best wishes > Mohammad > -- 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/bc73b33f-45b4-493a-a07c-0fa7774fc622n%40googlegroups.com.

