<$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)
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a9c51bca-41f0-460e-9e51-5907321362e5n%40googlegroups.com.
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bc73b33f-45b4-493a-a07c-0fa7774fc622n%40googlegroups.com.
The $list widget in 5.1.24 has got a new attribute index!
It is everywhere like a nice dog!
Now index means that or this. When somebody is referring to index, in what context? As in data tiddlers, or as in numerically identifiying <$list> items in a sequence?Overloading the word index. That annoys the daylights out of me.
To understand the difference in performance, try changing sidebar tabs in this wiki which has the index feature permanently switched on: https://tw5-with-hacked-list-widget.tiddlyhost.com/Keeping the index updated and correct across refreshes requires re-rendering the DOM nodes for entire list widgets each time. We currently have no mechanism to avoid this and room for optimization is very limited at best.
On Sunday, April 25, 2021 at 10:07:09 AM UTC+2 PMario wrote:On Saturday, April 24, 2021 at 6:03:41 PM UTC+2 cj.v...@gmail.com wrote:Now index means that or this. When somebody is referring to index, in what context? As in data tiddlers, or as in numerically identifiying <$list> items in a sequence?Overloading the word index. That annoys the daylights out of me.It's still time to add your concerns at the github PR or create a new issue at github. The version isn't released yet. So everything can be adjusted!see: https://github.com/Jermolene/TiddlyWiki5/pull/5611 In a new issue you can relate to the PR-mario
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7eb8b19b-8964-4e25-8f39-031d0cb198bdn%40googlegroups.com.
Good points! Like you said, I believe the base 0 or 1 should be set by the user! The PR has been recently merged and It is goodto write your feedback there.
I'm not all that crazy about the choice of "index" as the keyword to handle that.To me, index means index to an item in a data tiddler.Now index means that or this. When somebody is referring to index, in what context? As in data tiddlers, or as in numerically identifiying <$list> items in a sequence?Overloading the word index. That annoys the daylights out of me.
Best wishesJeremy
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9F1B89B2-46F1-4D17-9DE4-92F23A619E4C%40gmail.com.
It seems to me that devising a mechanism to let the user specify 0 or 1-based indexes will result in more complexity than the user simply adding 1 when required. Did you have a mechanism in mind?
A tee would be a filter operator that would take the results of the filter so far and put them in a variable.
Does anyone have any thoughts on an alternative?Perhaps “counter”?
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/986f52e4-9a97-4cde-b645-82e377322f92n%40googlegroups.com.
I’ve committed two changes:* The “index” attribute is now called “counter”* The counter value is now 1-based, instead of 0-based
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0D41B9CC-9BE4-474C-96CB-6F06601A80B6%40gmail.com.