Hi Jed, Thanks for answering ! Sorry I can't get anywhere with your proposal, even when I make some modifications. When thinking about my problem, I came to rephrase it in another way :
How can I apply the nth[] operator to an explicit list of tiddlers titles ? (that was the title of the thread !) A filter can be an expression like [tag[test]] and I can apply the operator : [tag[test]]nth[2] But when the filter is an explicit list of tiddlers like one two three, or [[one]] [[two]] [[three]], how do I apply the nth operator to such a list (which is not generated by another operator like list[] or tag[]) ? FrD Le mardi 11 août 2015 21:09:17 UTC+2, Jed Carty a écrit : > > Here you should be able to use + in the filter. I don't know how your > macro works but if you have some normal filter expression you can do thinks > like [tag[bob]]+[nth[1]] > > If you are constructing your list differently than you may be able to use > a set widget and a macro like this: > > \define thisButton() > <$button>some button label > <$set name="val1" filter="""$(TheList)$+[nth[1]]"""> > <$set name="val2" filter="""$(TheList)$+nth[2]]"""> > <action-setfield list="""$(TheList)$"""/> > <$action-setfield $tiddler="targetTiddler" field1=<<val1>>W/> > <$action-setfield $tiddler="EssaiBouton" field2=<<val2>>/> > </$button> > \end > > <$set name=TheList value=<<macro>>> > <<thisButton>> > </$set> > > Hopefully that helps > > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f511865c-9f19-4033-84d4-777528efddcb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.