<$list> and duplicate items

65 views
Skip to first unread message

David Nebauer

unread,
Mar 3, 2019, 6:25:14 PM3/3/19
to TiddlyWiki
I've read the previous discussions about how filters remove duplicates because they are based on the assumption all they will ever be fed is tiddler titles, and how filters may be changed to accept duplicates in the next major, i.e., backwardly incompatible, upgrade.

I need to break a string into items and feed it to a <$list> but, because it may contain duplicates, cannot use a filter with the enlist operator. Can I ask what approaches others have taken in this situation? I've found tobibeers' split filter which looks like it might do the job (± his setvars widget), but perhaps there are other solutions as well. Is there any way to do it using only core TW functionality?

Regards,
David.

Mal

unread,
Mar 3, 2019, 9:00:05 PM3/3/19
to TiddlyWiki
David,

If you put the following into the advanced search / filter box in 5.1.20 prerelease:

"one/two/one/three" +[split[/]]

You get:

one
two
one
three

Is this what you are after?

Of course it won't work in earlier releases and it works like this even without Jeremy's recent trials of allowing duplicates in all filter operations.

Mal

David Nebauer

unread,
Mar 3, 2019, 9:12:37 PM3/3/19
to tiddl...@googlegroups.com
Genius. That looks exactly like what I need.

Is there a release schedule for 5.1.20? Is there any way to install it under nodejs now if you're willing to accept the risk of breakage?

Regards,
David.

Mal

unread,
Mar 3, 2019, 9:59:22 PM3/3/19
to TiddlyWiki
David.

I can't comment on the release schedule for 5.1.20 - I think Jeremy follows a "release when ready" strategy.

If you go the 5.1.20 prerelease, you can download empty.html.  I don't know how to upgrade the nodejs version to the prerelease.

Regards,

Mal

Mal

unread,
Mar 3, 2019, 10:01:57 PM3/3/19
to TiddlyWiki
Actually, the instructions for running the prerelease under nodejs are on tiddlywiki.com.

Mal

David Nebauer

unread,
Mar 3, 2019, 11:56:27 PM3/3/19
to tiddl...@googlegroups.com
Thanks, Mal. I'm a little embarrassed I missed that.

Regards,
David.
Reply all
Reply to author
Forward
0 new messages