Best wishes Mohammad
On Mon, Apr 26, 2021 at 6:29 PM Jeremy Ruston <[email protected]> wrote: > I’ve committed two changes: > > * The “index” attribute is now called “counter” > * The counter value is now 1-based, instead of 0-based > Much appreciated! the base 1 makes sense and it is meaningful for most use cases in TW. > > The commit is here: > > > https://github.com/Jermolene/TiddlyWiki5/commit/4a99e0cc7d4a6b9e7071c0b2a9a0f63c3c7d2492 > > You can see the results here: > > https://tiddlywiki.com/prerelease/#ListWidget > > Best wishes > > Jeremy. > > > On 26 Apr 2021, at 11:03, Álvaro <[email protected]> wrote: > > It looks great feature. > > I don't have any problem with the keyword "index", the keyword connect > perfectly with its function, IMHO. I think that the Tones's proposal > "list-index" is great alternative. > > El lunes, 26 de abril de 2021 a las 2:39:43 UTC+2, TW Tones escribió: > >> Folks, >> >> I penciled this working example (tiddlywiki.com) to test some of the >> statements, and basically found much can be satisfied with a maro. >> >> Personally I am keen to see much of this incorporated in the list widget, >> but a new widget "lister" or "report" would be fine. >> >> - stores the original filter for reuse >> - saves the list generated by the filter for reuse >> - provides before after and during (text of first and last) >> - Perhaps later to transclude or exec macro >> - the macros before/after and each-item are to allow reformatting the >> output. >> >> >> \define before() >> ;before >> :Input filter <$text text=<<filter>>/> >> :Members: <<last-item>> >> :Whole list in variable ''item-list'' >> ;list with ordinal available with ''position'' variable >> \end >> \define after() >> ;after >> >> \end >> \define each-item() <<position>> <$link/> __<<first>> <<last>>__ <br> >> >> \define position() {{{ >> [enlist<item-list>allbefore:include<currentTiddler>count[]] }}} >> \define first() {{{ [<position>match[1]then[first]] }}} >> \define last() {{{ [<position>match<last-item>then[last]] }}} >> \define list-ordinal(filter) >> <$set name=item-list filter="$filter$"> >> <$set name=last-item filter="$filter$ +[count[]]"> >> <$set name=filter value="$filter$"> >> >> <$wikify name=result text="<<before>>" output=html><<result>></$wikify> >> >> <$list filter=<<item-list>> > >> <$wikify name=position text="<<position>>"> >> <<each-item>> >> </$wikify> >> </$list> >> >> <$wikify name=result text="<<after>>" output=html><<result>></$wikify> >> >> </$set></$set></$set> >> \end >> >> <<list-ordinal "[tag[Widgets]]">> >> >> >> Tones >> On Monday, 26 April 2021 at 10:08:09 UTC+10 Brian Radspinner wrote: >> >>> I like either "ordinal" or "number" rather than index >>> >>> On Sunday, April 25, 2021 at 4:12:15 PM UTC-7 PMario wrote: >>> >>>> On Sunday, April 25, 2021 at 5:03:52 PM UTC+2 Jeremy Ruston wrote: >>>> >>>>> Does anyone have any thoughts on an alternative? >>>>> >>>>> Perhaps “counter”? >>>>> >>>> >>>> I would prefer "*number*" instead of counter. >>>> >>>> -m >>>> >>>> > -- > 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/986f52e4-9a97-4cde-b645-82e377322f92n%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/986f52e4-9a97-4cde-b645-82e377322f92n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- > 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/0D41B9CC-9BE4-474C-96CB-6F06601A80B6%40gmail.com > <https://groups.google.com/d/msgid/tiddlywiki/0D41B9CC-9BE4-474C-96CB-6F06601A80B6%40gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CAAV1gMBCL-Lvyc-k_x2fgfXHLF_yg3AFaAesO1-3KWpQidD%3D_w%40mail.gmail.com.

