Hi Mat,
I think because you're manipulating the field like text, and not like a
list, you need the action-setfield operator instead. I'm sure this example
is over-simplistic, but here it goes:
\define concat() $(append2me)$ -$(appendme1)$ -$(appendme2)$
\define negative()
<$vars append2me={{mylist!!list}} appendme1="fritz" appendme2="[[frotz
gronk]]" >
<$button>
Remove
<$action-setfield $tiddler="mylist" $field="list" $value=<<concat>> />
</$button>
</$vars>
\end
<$edit-text tiddler=mylist tag=input/>
<<negative ... >>
The question I would have is why you want to do it this way, and not just
use the listops operator to change the list field? Also, does the elipses
in <<negative ...>> do anything?
Have fun!
Mark
On Saturday, September 9, 2017 at 6:02:26 AM UTC-7, Mat wrote:
>
> For the Batch Manipulator <http://batchmanipulator.tiddlyspot.com>, I
> need a button to append foo and [[frotz gronk]] "negatively" to an
> existing field value so it looks like this
>
> foo bar [[frotz gronk]] -foo -[[frotz gronk]]
>
> If this is then input for a filter, the result in "bar" only. But I need
> the above statement to exist visibly/statically in a field.
>
> I assume I should use listops but fail to get that "negative append".
> Here's the code:
>
>
> \define negative(...)
> <$button>
> Remove
> <$action-listops $tiddler="mylist" $subfilter="???????????" />
> </$button>
> \end
>
> <$edit-text tiddler=mylist tag=input/>
>
> <<negative ... >>
>
>
> The actual use for it in Batch Manipulator is to have a button next to
> each listed tiddler so that individual titles can be excluded from the
> batch manipulation.
>
> Thank you in advance!
>
> <:-)
>
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/f7fa067a-fcaf-4b61-a8a2-e66e69a5a26e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.