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.

Reply via email to