Hi Matabele,
Where items are being prepended, appended or removed from the list, there
> is no need for a marker, and the operand becomes available for specifying
> the items involved. One advantage is that items can be picked as a range
> from an array, which may be referenced rather than directly specified (as
> in, append the last three days-of-the-week to the list.)
I see, so you are required to specify the operand using text-references or
variables for multiple items.
I think it might be more consistent to use the same syntax of the list
filter here, e.g:
filter="[list[some-list]prepend:5[some-tiddler!!some-list]]
instead of:
filter="[list[some-list]prepend:5{some-tiddler!!some-list}]
Also, this should never do anything, it appears:
if (append === "") {
...as you have cast append into an array like so:
append = $tw.utils.parseStringArray(operator.operand);
Here's a test that does not do as I expect:
title: test
x: [[foo bar]] baz mumble frotz
y: [[aaaa bbbb]]] cccc mumble eeee
{{{ [list[!!x]append:3{!!y}] }}}
which outputs:
-
- foo bar
- baz
- mumble
- frotz
- aaaa bbbb]
- cccc
- mumble
But should output a set:
- foo bar
- baz
- frotz
- aaaa bbbb
- cccc
- mumble
In other words, it should work exactly the same as:
{{{ [list[!!x]] [[aaaa bbbb]] cccc mumble }}}
Should it not?
Same for using a variable *y* instead of a field *y*.
Best wishes,
— tb
--
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 post to this group, send email to [email protected].
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/a62692f0-abd0-465a-977f-81823f59e0ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.