The enlist-input filter operator: Is this a bug?

  • open https://tiddlywiki.com/prerelease/
  • create two tiddlers tagged with exmp
    • tiddler one text: one two three
    • tiddler two text: one four five
  • in another tiddler put the below filter
<$list filter="[tag[exmp]get[text]enlist-input[]]">

</$list>

The output is (which has duplicates)

one
two
three
one
four
five

The document (https://tiddlywiki.com/prerelease/#enlist-input%20Operator) says by default: suffix | D = dedupe (the default) to remove duplicates, raw to leave duplicates untouched

Not a bug, the enlist-input filter operator works on a single title at a time. Your test data has no duplication within the text of any of the input tiddlers.

1 Like

Thank you for clarification Saq!
What about

<$list filter="[tag[exmp]get[text]] +[enlist-input[]]">

</$list>

Is it still on single title? I guess so!

May be I have to collect all of them in one variable and the pass to enlist?

If you want to de-duplicate, just use the unique[] operator at the end of the run.

[tag[exmp]get[text]enlist-input[]unique[]]
3 Likes