This tiddlyscript:

<$set name="HasDuplicates" value="one two two three [[twenty one]] [[twenty 
one]] [[forty six]]">

<$list filter="[split:list<HasDuplicates>]">

</$list>

xXx

<$list filter="[enlist<HasDuplicates>]">

</$list>

</$set>

results in:


one <http://localhost:10744/#one>
two <http://localhost:10744/#two>
three <http://localhost:10744/#three>
twenty one <http://localhost:10744/#twenty%20one>
forty six <http://localhost:10744/#forty%20six>


xXx

one <http://localhost:10744/#one>
two <http://localhost:10744/#two>
three <http://localhost:10744/#three>
twenty one <http://localhost:10744/#twenty%20one>
forty six <http://localhost:10744/#forty%20six>

There are duplicate items in the list, and in this example *split:list* 
removes them just as *enlist* does. It is my understanding that tobibeer's 
split filter is not supposed to remove duplicates unless the 'unique' 
suffix is used. Does anyone know if there any way to use tobibeer's split 
filter to obtain a list that keeps duplicate items? (Or any other method?)

TW5/nodejs 5.1.19
tobibeers/split plugin 0.8.0

Note: I am aware that TW 5.1.20 will have a split operator that retains 
duplicates, but I'm hoping for a solution in days rather than [*insert TW 
5.1.20 release schedule here*].

Regards,
David

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b9549262-d365-4714-8778-8e36d1c20b7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to